Adding new column of data from loop
135 views (last 30 days)
Say I have a loop running how would I create a new variable that holds the columns I want say.
v= %some code that ouputs a 1 row 10 column data set say [1;2;3;4;5;...10]
x=v % x adds v as the first column.
% Then adds v again on the second loop run as the 2nd column then adds v again for the 3rd column
%so something like x=v, x=vv, x=vvv it keeps adding a new column to x of the data produced by v
I hope you can help. Thank you.