Plotting second order ode response

8 ビュー (過去 30 日間)
Ande Mandoyi
Ande Mandoyi 2020 年 10 月 10 日
回答済み: Paul 2020 年 10 月 10 日
I have been trying to plot the curve of 'y', the step response of a differential equation but my code doesn't seem to work, please help.
clear all, close all, clc
y = dsolve('D2y+12*Dy+36*y=36', 'y(0) = 0','Dy(0) = 0')
pretty(y)

採用された回答

Paul
Paul 2020 年 10 月 10 日
f=matlabFunction(y);
t=0:.001:1;
plot(t,f(t)),grid
If you have the Control System Toolbox:
step(tf(36,[1 12 36]))

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by