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일

0 개 추천

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개)

카테고리

제품

릴리스

R2019a

질문:

2020년 10월 10일

답변:

2020년 10월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by