Matlab: System response query.

AI Thread Summary
To find the system response of the transfer function G(s) = 1/(s+5) with a unit step input and zero initial conditions, the correct denominator in MATLAB should be den = [1 5]. The user initially attempted to use den = [-5], which is incorrect. The coefficients in the denominator represent the Laplace polynomial, not its roots. The MATLAB command step(num, den, t) is appropriate for simulating the system response. Accurate transfer function representation is crucial for correct analysis in MATLAB.
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.
 
Back
Top