Top 1% contributor
Given a string, remove all the letters which in ASCII Code are prime numbers.
s1 = 'Determine which array e...
17 days ago
4 months ago
Typically people use MAT files for this.
a = rand(10);
b = rand(12);
save myMat a b
Answered 8 months ago
9 months ago
Hi Francisco, Check out the R2014a release notes for Simulink. http://www.mathworks.nl/help/simulink/release-notes.html GitH...
12 months ago
Comparing Tweets on Geek Comics
3 years ago
Tracking the number of downloads of a MATLAB Central Entry:
Shows how many times this MATLAB Central File Exchange was downloaded.
However I would invite you to explore the Curve Fitting Toolbox.
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 12 months 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...
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 ...
3 days ago
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?
7 days ago
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...
Tell me the slope, given a vector with horizontal run first and vertical rise next.
x = [10 2];
There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...
Join the conversation