我如何将此表达式转换为图形?

问题描述 投票:0回答:1

给出如下表达式

enter image description here

如何绘制情节?

octave
1个回答
0
投票

您可以使用plot,即

t = 0:0.1:5;
y = 1-2*exp(-0.5*t).*cos(2*t);
plot(t,y)

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.