How to store the looping values into matrix?

2 views (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)

Tags

Products

Community Treasure Hunt

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

Start Hunting!