How can i perform for loop in this case?
Show older comments
Hi
i have matrix with dimension 51*1
i would like to obtain 51*71 *3 because the function that i dealing with the output is 3d array any suggestions? thanks
Answers (1)
x = rand(51, 1);
M = repmat(x, 1, 71, 3);
size(M)
2 Comments
RADWAN A F ZEYADI
on 20 Nov 2021
Jan
on 21 Nov 2021
Why do you want to use a for loop, if there is no need to do so?
The question is vague and I can only guess, what you want as output.
Categories
Find more on Loops and Conditional Statements 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!