How to plot this function in matlab.

1 回表示 (過去 30 日間)
Robert Bittinger
Robert Bittinger 2023 年 2 月 11 日
回答済み: Arif Hoq 2023 年 2 月 11 日
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

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by