Extracting data from SimulationOutput from multiple simulations
古いコメントを表示
Hi ,
I have done parallel simuation using parsim and singl eoutput file is generated. The Simulation Output object conatibns 8 runs of the same model ( Picture 1).
Now I want to extarct data of a specific signal from all the 8 runs in into one variable.
Currently I am using something like this,. It i sworking though , but is there any better way to do it as the numebr of signal to be processed is very large.
( TP_rms is a custom function )
No_iter= 8;
PCC_V_All=[];
for k_index=1:No_iter
PCC_V = TP_rms(get(out(1, k_index).logsout,'PCC_Vabc').Values.Data);
PCC_V_All=[PCC_V_All, PCC_V];
end
PCC-V signal is 1200x3. and the output PCC_V_All would be 1200X24.
Please suggest a better way to do this.
Picture 1:

Pictuer2: ( Signals in each Simulation output- Signal names are same in each run)

1 件のコメント
madhan ravi
2023 年 12 月 5 日
Picture 1 no pictures attached in the question
採用された回答
その他の回答 (1 件)
madhan ravi
2023 年 12 月 5 日
編集済み: madhan ravi
2023 年 12 月 5 日
No_iter= 8;
PCC_V_All = cell(1, No_iter);
for k_index = 1 : No_iter
PCC_V{k_index} = TP_rms(get(out(1, k_index).logsout,'PCC_Vabc').Values.Data);
end
PCC_V_ALL = [PCC{ : }]
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!