How to store the looping values into matrix?

1 view (last 30 days)
for every iteration of a for loop ihave to store the values in a matrix.How to do that?

Accepted Answer

Pedro Villena
Pedro Villena on 18 Oct 2012
Edited: Pedro Villena on 18 Oct 2012
me = rand(1,140); %%matrix 1x140
k = reshape(me,length(me)/length(cd1),length(cd1))'; %%matrix 5x28

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!