필터 지우기
필터 지우기

How can i store all simulation results from ?

조회 수: 1 (최근 30일)
arkedia
arkedia 2012년 12월 10일
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
Muruganandham Subramanian 2012년 12월 10일
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에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by