Ordinary Differential Equations (ODEs)
显示 更早的评论
syms t y(t)
ysol=dsolve(' D2y + Dy + 4.25*y = 0','y(0)=2','Dy(0)=1');
y(t)=simplify(ysol)
ezplot(y(t),[0 10]);
xlabel('t');
ylabel('y(t)');
Based on the code block above, I get the following output.

But the output I want to get is as follows.

The formula is as above

I have to use ezplot. How can I get the 2nd output? Where am I making a mistake?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
