how to plot this equation?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jay
am 20 Nov. 2012
Beantwortet: CHERRY OO
am 21 Nov. 2022
p= (B-(b*t))/(sigma);
I need this equation to be plot as t increase by 1
for t= 0:1:
p(t)= (B-(b*t))/(sigma); plot(t,p)
How do I do it? Please help
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 20 Nov. 2012
t = 0 : 0.1 : 1;
for K = 1 : length(t)
p(K) = (B-(b*t(K)))/(sigma);
end
plot(t, p)
(Note: there are more efficient ways of doing it, but this is the closest correspondence to your current code.)
4 Kommentare
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!