Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird response to a step in matlab

Status
Not open for further replies.

transfercs

Specifier/Regulator
May 23, 2014
2
I have this script which isn't making that much sense.

clear all
kp = 0.000065;
ki = 0;
kd = 0;
b = pid(kp,ki,kd);
d = (tf([1 0],[1]))
f = tf([11.53 1.068],[1 0.09834 6.263*10^(-5)])
velocity = feedback(b*f,d)
a = pole(velocity)
b = zero(velocity)
step(velocity)

Looking at it's step input, you will see that the final value is incredible large considering that response is due to a step input.. i know something must be wrong but what is wrong?
 
Replies continue below

Recommended for you

Is this for school? Student posting is not allowed.

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
Nope.. i am testing a controller for a system, it doesn't reponds as i want it to.. that why i asking if I am doing something wrong.
 
So, who wrote the script? Why not ask them?

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
Looks to me like basic misunderstanding of some of the lesser travelled bits of Matlab: some of the longer, cleverer functions in the control system toolbox (which use names that IMO should be decorated, not simple). This little example explains nothing but shows what to do (i.e. how to create the right arguments to pass from one "function" to the next).


- Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor