Simulink to workspace doesn't work
古いコメントを表示

My Simulink file was like that and when i want to plot the results it doesnt work
%file is untitled2.m
Mp =10;
Mj=60;
Bp = 100;
Bj = 10;
KR = 400;
sim('parachute')
subplot(4,1,1)
plot(out.Time,out.xj,out.Time,out.xp,'--')
subplot(4,1,2)
plot(out.Time,out.vj,out.Time,out.vp,'--')
subplot(4,1,3)
plot(out.Time,out.aj)
subplot(4,1,4)
plot(out.Time,out.delx)
Output workspace is like that:

How can i fix that? Thanks.
採用された回答
その他の回答 (1 件)
Walter Roberson
2023 年 11 月 26 日
0 投票
Turn off Single Simulation Output; https://www.mathworks.com/help/simulink/gui/singlesimulationoutput.html
3 件のコメント
Mustafa Duran
2023 年 11 月 26 日
madhan ravi
2023 年 11 月 26 日
See my answer above for the data format I mentioned.
Walter Roberson
2023 年 11 月 26 日
What gets stored at the MATLAB level is likely going to be a time series .
カテゴリ
ヘルプ センター および File Exchange で Parametric Modeling についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

