Top 1% contributor
Given a string, remove all the letters which in ASCII Code are prime numbers.
s1 = 'Determine which array e...
2 months ago
6 months ago
Typically people use MAT files for this.
a = rand(10);
b = rand(12);
save myMat a b
Answered 10 months ago
10 months ago
Shows how many times PublishUtils was downloaded
Shows how many times this MATLAB Central File Exchange was downloaded.
Hi Francisco, Check out the R2014a release notes for Simulink. http://www.mathworks.nl/help/simulink/release-notes.html GitH...
1 year ago
i believe that data dictionary will help: <http://nl.mathworks.com/help/simulink/ug/what-is-a-data-dictionary.html what is a dat...
Answered 2 months ago
However I would invite you to explore the Curve Fitting Toolbox.
Answered 9 months ago
There are many ways of doing this... however a common way is using MAT Files.
a = rand(10);
b = rand(12);
save myMat ...
You will need Vehicle Network Toolbox
Answered 1 year ago
V = rand(1,3)
C = rand(13,3)
for i = 1:length(C)
d(i) = dot(V,C(i,:));
There are a couple of ways of doing this.
- take a frame, add your watermark to it, save that frame, repea...
If you use the command
you will get a new graph.
Try using the curve fitting toolbox.
Here is the link to:
Answered 3 years ago
Maybe I miss understood what you were aiming for but try logical indexing.
img = imread('pout.tif');
h_im = ims...
5 months ago
Comparing Tweets on Geek Comics
3 years ago
All points except for one lie on a line. Which one is the outlier?
You are given a list of x-y pairs in a column ...
1 month ago
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...
Given a list of results from trades made:
[1 3 -4 2 -1 2 3]
We can add them up to see this series of trades made a profit ...
You have a phenomenon that produces strictly positive or negative results.
delta = [1 -3 4 2 -1 6 -2 -7];
Given a vector:
[1 0 -1 3 2 -3 1]
and a window of 2,
A sliding window would find:
1 + 0 = 1
0 - 1 = -1
If given a letter from the set:
and a shift, implement a shift cypher.
with a shi...
Given a matrix A and a matrix B, is A the inverse of B?
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector, output true or false whether it is a colu...
A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...
x = [1 2 4; 3 4 5; 5 6 7]
then y should be the sum of the diagonals of the matrix
y = 1 + 4 + 7 = 12
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
The row array birthRateChina stores the China birth rate (per 1000 people) for years 2000 to 2012. Write a statement that create...
Join the conversation