Can you help me with my problem ?
1 view (last 30 days)
Show older comments
How can i create a matrix that is from (11-60) and in each line it gets +10 until it gets to last line 501-550
1 Comment
John D'Errico
on 8 Apr 2020
Confusing question. Could you please give a small example of what you need? Are you asking for something pseudo-random?
Accepted Answer
Ameer Hamza
on 8 Apr 2020
Edited: Ameer Hamza
on 8 Apr 2020
This will work in R2016b and later.
x = 11:60;
y = 0:10:490;
M = x+y';
Earlier releases
x = 11:60;
y = 0:10:490;
M = bsxfun(@plus, x, y');
0 Comments
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!