MATLAB: How to plot

help graph plot

syms s ;
t = 0:0.1:1
ys =((35+4*s)/(s^2+5*s))
yspf = partfrac (ys)
yt= ilaplace (yspf)
plot(t,yt)

Best Answer

syms s ;
t = 0:0.1:1 ;
ys =((35+4*s)/(s^2+5*s)) ;
yspf = partfrac (ys) ;
yt= ilaplace (yspf) ;
y = double(subs(yt,t)) ;
plot(t,y)
YOu have to substitute t in yt and then convert it to double to plot.
Related Question