Hi,
I'm struggling to store for loop outcome in matrix.
for x=33:0.5:35
f1=
parameter 6 = blah blah
output = [x f1.parameter1 f1.parameter2 f1.parameter3 f1.parameter4 f1.parameter5 parameter6]
end
So the final outcome from the loop gives one row with 7 columns
I would like to store my data from my for loop in a matrix so that everytime it produces new output it puts it in the next row.
(So for x=33:0.5:35, it should give a matrix with 5 rows and 7 columns)
How can I acheive this?
Many thanks in advance
0 Comments
Sign in to comment.