Matlab: System response query.

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
technowar
Messages
4
Reaction score
0

Homework Statement


Hi. I need help on this Matlab problem.

I need to find the system response of the function, where the input is a unit step and a zero initial condition.

G(s) = 1/(s+5)

Homework Equations



G(s)=C(s)/R(s)

The Attempt at a Solution



num=[1];
den=[-5];
t=0:0.1:80;
step(num,den,t)

[PLAIN]http://cl.ly/3G0U3g473B1Y0L1r2d2o/1.jpg
 
Last edited by a moderator:
Physics news on Phys.org
Your denominator is incorrect, it should be den = [1 5] basically the transfer function should look like G(s) identically
 
Shouldn't it be [1 -5]? But other than that, do you think it's correct?
 
No MATLAB does not build transfer functions according to their roots. The arrays you provide are coefficient to the laplace polynomial.