Multiple plots not working on the simulink spring mass model
1 回表示 (過去 30 日間)
古いコメントを表示
In this pdf, page number 39, exericse 2 i tried implementing the same code using the same method but my output graph is like this. I have attachted my simulink file.
%for plotting graph
plot(out.t,out.x)
hold on
B = 8;
sim('second')
plot(out.t,out.x)
B=12;
sim('second')
plot(out.t,out.x)
B = 25;
sim('second')
plot(out.t,out.x)
hold off
%parameters
M=2; %kg
K= 16; %N/m
B=4; % Ns/m
0 件のコメント
回答 (1 件)
Fangjun Jiang
2021 年 9 月 2 日
4 件のコメント
Fangjun Jiang
2021 年 9 月 2 日
Figure out what variable is your saved output. It could depend on your configuration setting, signal logging or ToWorkspace block.
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!