Trying to make a variable change between time intervals then output an array to plot the change of force
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mark Johnson
am 9 Mär. 2022
Kommentiert: Mark Johnson
am 9 Mär. 2022
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 Kommentare
Akzeptierte Antwort
Torsten
am 9 Mär. 2022
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;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!