1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Steady state error of control system on MATLAB

  1. Apr 20, 2012 #1
    Given the following system (d(t)=0), I'm supposed to calculate the steady state error for unit step and unit ramp inputs respectively.

    Basically, the open-loop transfer function of the system is
    [tex]\frac { 3s+0.5 }{ s({ s }^{ 2 }+3s+8) } [/tex]
    The closed-loop system is
    [tex]\frac { 3s+0.5 }{ { s }^{ 3 }+{ s }^{ 2 }+11s+0.5 } [/tex]
    I found the values of the steady-state errors, but the problem is that the numbers don't match with the simulation. I'm pretty sure there is something wrong with my code since the errors for both step and ramp responses are close to 0. The calculations show 0.5 and infinity respectively.

    Here is my working and plots.

    Here is my code:
    Code (Text):
    sys1 = 3 + tf(0.5.*[1], [1 0]);
    sys2 = tf([1], [1 3 8]);
    sys = feedback(sys1*sys2, 1)

    hold on
    hold off

    sys3 = tf([1], [1 0]);
    title('Ramp Response')
    hold on
    hold off
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted