How can i store all simulation results from ?
1 回表示 (過去 30 日間)
古いコメントを表示
I'm running a simulation algorithm for example 500 runs, (note the result is matrix) , my question is: How can i store all the results "the 500 matrix" ? i want first matrix,then the second after the first etc. i will have a bigger matrix 500 matrix vertically, Is it possible??
2 件のコメント
回答 (2 件)
TAB
2012 年 12 月 10 日
% Create matrix to store result
MySavedResult = zeros(500,5);
% Store like this
for x=1:500
res = SomeProcessing; % Get 1x5 result vector
MySavedResult(x,:) = res; % Save result
end
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!