I am running for loop for 10 times, each time I am getting op as a matrix of size 1*4. I want to store each op so that i will get 10 * 4 matrix?

Answers (1)

You could do it like this:
S=[];
dummy=1:1:4;
for n=1:1:10
S(n,:)=dummy;
end
Where dummy is your data and S your result

Categories

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

Asked:

on 3 Oct 2016

Answered:

on 3 Oct 2016

Community Treasure Hunt

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

Start Hunting!