How to plot this function in matlab.

4 Ansichten (letzte 30 Tage)
Robert Bittinger
Robert Bittinger am 11 Feb. 2023
Beantwortet: Arif Hoq am 11 Feb. 2023
The expression I am trying to plot is y(t) = -bt - (3/2)b^2. I am confused on how to structure this so I can make a simple plot of the function. Any help would be greatly appreciated. Thank you

Akzeptierte Antwort

Arif Hoq
Arif Hoq am 11 Feb. 2023
b=4; % specify your variable b
t=linspace(0,20,10); % time
y=-b.*t-3/2*b.^2;
plot(t,y)

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by