Loop over modelruns and write out data
Show older comments
Hi,
I have 100 model runs and I would like to write out the data. My script looks like this:
for i=1:100 %number of model runs
load(['data' num2str(i) '.mat']);
a1=[x0, x10, x20, x30, x40, x50, x60, x70, x80, x90, x100]; %1x11 matrix
a2=[z0, z10, z20, z30, z40, z50, z60, z70, z80, z90, z100]; %1x11 matrix
y1(i)=[x0(i), x10(i), x20(i), x30(i), x40(i), x50(i), x60(i), x70(i), x80(i), x90(i), x100(i)]; %100x11 matrix
u2(i)=[z0(i), z10(i), z20(i), z30(i), z40(i), z50(i), z60(i), z70(i), z80(i), z90(i), z100(i)]; %100x11 matrix
end
I would like to write out the data in the way as shown in y1 and u1 (each in a 100x11 matrix). Do you have an idea, how to solve this problem?
Thanks a lot!
Accepted Answer
More Answers (0)
Categories
Find more on Time Series Events in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!