Trying to make a variable change between time intervals then output an array to plot the change of force
1 回表示 (過去 30 日間)
古いコメントを表示
L=100;
t=1:0.2:300;
while t<100
Mw=20
while t>100 and t<200
Mw=100
while t>200
Mw=17
end
end
end
F=0.04*L*Mw
0 件のコメント
採用された回答
Torsten
2022 年 3 月 9 日
L=100;
t=1:0.2:300;
Mw = zeros(numel(t),1);
Mw(t<100) = 20;
Mw(t>=100 & t<=200)=100;
Mw(t>200) = 17;
F=0.04*L*Mw;
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!