How to plot this function in matlab.
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!