Exporting data from simulink to workspace and save in different Timeseries

5 ビュー (過去 30 日間)
Klaus Peter
Klaus Peter 2014 年 8 月 22 日
回答済み: Yu Jiang 2014 年 8 月 30 日
Hey everybody!
I have a simulink model and i want to change one parameter (z) in the model to check whats is the influece of this parameter. I have a simout to workspace block in my model (sout)
So for this i made a for loop ...........
for z=1:1:10
sim ('model')
plot(sout) %%sout is the simout variable (Timeseries)
hold on
end
From this i get the plots of the different values of z but the problem is, that i only get the timeseries in the Workspace for z=10.
Matlab doesn't save the other Timeseries fot z=1, z=2 and so on. So how can i geht them ?
Thanks a lot !

回答 (1 件)

Yu Jiang
Yu Jiang 2014 年 8 月 30 日
Hi Klaus
You could set the model to log the signals and compare the results using the Simulink Data Inspector, see the following for more details.
- Yu Jiang

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by