• Support PF! Buy your school textbooks, materials and every day products Here!

Responses of a transfer function on MATLAB

  • Thread starter geft
  • Start date
  • #1
148
0
I'm given the following system:

[tex]\frac { 3s+0.5 }{ { s }^{ 3 }+3{ s }^{ 2 }+8s } [/tex]

I'm supposed to find the steady state error of the system by plotting the step and ramp responses, and then find the value when s tends to infinity.

Here is the MATLAB code:

Code:
sys1 = 3 + tf(0.5.*[1], [1 0]);
sys2 = tf([1], [1 3 8]);
sys = sys1*sys2

subplot(1, 2, 1)
step(sys)

sys3 = tf([1], [1 0]);
subplot(1, 2, 2)
step(sys*sys3)
title('Ramp Response')

figure
rlocus(sys*sys3)
Here's the result: http://i.imgur.com/vXoXV.png

As can be seen, the step and ramp responses are unstable. All the roots are on the left of the imaginary axis, so the system must be stable. I'm not sure where I went wrong.
 

Answers and Replies

  • #2
CEL
656
0
I'm given the following system:

[tex]\frac { 3s+0.5 }{ { s }^{ 3 }+3{ s }^{ 2 }+8s } [/tex]

I'm supposed to find the steady state error of the system by plotting the step and ramp responses, and then find the value when s tends to infinity.

Here is the MATLAB code:

Code:
sys1 = 3 + tf(0.5.*[1], [1 0]);
sys2 = tf([1], [1 3 8]);
sys = sys1*sys2

subplot(1, 2, 1)
step(sys)

sys3 = tf([1], [1 0]);
subplot(1, 2, 2)
step(sys*sys3)
title('Ramp Response')

figure
rlocus(sys*sys3)
Here's the result: http://i.imgur.com/vXoXV.png

As can be seen, the step and ramp responses are unstable. All the roots are on the left of the imaginary axis, so the system must be stable. I'm not sure where I went wrong.
Your system has a pole at the origin. So, it is unstable. With a unit feedback it can be made stable, depending of the gain (your root locus graph).
 
  • #3
148
0
So it's only stable if it's a closed loop? Thanks, that solved the unit step part.

What about the ramp response? How do I make it stable?
 
Last edited:
  • #4
CEL
656
0
The response of a stable system to a ramp input is a ramp, so it tends to infinity.
If you have a pole at the origin, the response to a ramp will be a parabola, as your graph shows.
 
  • #5
148
0
Many thanks for the help.
 

Related Threads on Responses of a transfer function on MATLAB

Replies
2
Views
5K
  • Last Post
Replies
2
Views
14K
  • Last Post
Replies
1
Views
10K
Replies
0
Views
3K
Replies
6
Views
2K
Replies
1
Views
981
Replies
2
Views
862
Replies
2
Views
2K
Replies
0
Views
1K
Replies
1
Views
5K
Top