How can i store all simulation results from ?

3 次查看(过去 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 个评论
TAB
TAB 2012-12-10
What is size of your simulation output matrix ?
arkedia
arkedia 2012-12-10
the maximum size is 5 columns and the row = the runs (500 or 1000 or 5000)

请先登录,再进行评论。

回答(2 个)

Muruganandham Subramanian
Use diary command

TAB
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

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by