How can i store all simulation results from ?
Mostrar comentarios más antiguos
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??
Respuestas (2)
Muruganandham Subramanian
el 10 de Dic. de 2012
0 votos
Use diary command
TAB
el 10 de Dic. de 2012
% 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
Categorías
Más información sobre Dynamic System Models en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!