Docsity

Mechanical and Aerospace System Identification Homework, UF Fall 2008 - Prof. Prabir Baroo, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
EML 4930 Fall 2008
System Identification
University of Florida
Mechanical and Aerospace Engineering
HW #5
Issued: Nov. 3, 2008
Due : in class on Nov. 10, 2008
Problem 1. [2+5+3 +5 = 15 pt]
1. Write down the continuous time transfer function from u(t) to y(t), when they are
related by
m¨y+b˙y+ky =γu.
2. Call this transfer function Hc(s). Now derive the expression for the discrete time
transfer function Hd(z) corresponding to this continuous time transfer function with
Tustin approximation (in terms of the parameters m, b, k, γ , and the sampling period
T).
3. For m= 0.1, b = 1.0053, k = 2.5266×104, and γ= 1000 compute the value of Hc(jω)
for a number of ωvalues in the range 0 ≤ω≤105rad/s, and plot the magnitude
and phase of Hc(jω) so evaluated (i.e., the Bode plot). Use the MATLAB command
bode to verify your Bode plot.
4. Compute the poles of Hc(s) above for the aforementioned values of m, b, k, γ using
the MATLAB zpkdata command. For these parameter values, numerically compute
the poles of Hd(z) (using MATLAB) for the following two values of T: (1) 1 msec
and (2) 1 µsec. You can convert continuous time models to discrete time models in
MATLAB using Tustin transformation as shown in the following example:
s = tf(’s’);
Hc = (4*s + 3)/(s^2 + 2*s +2)
T = 0.001;
Hd = c2d(Hc,T,’tustin’);
and then use zpkdata(Hd,′v′) to compute the poles and zeros. Is Hd(z) BIBO stable
for both the sampling periods?
Prabir Barooah 1
pf2

Partial preview of the text

Download Mechanical and Aerospace System Identification Homework, UF Fall 2008 - Prof. Prabir Baroo and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

EML 4930 Fall 2008

System Identification

University of Florida Mechanical and Aerospace Engineering

HW

Issued: Nov. 3, 2008 Due : in class on Nov. 10, 2008

Problem 1. [2+5+3 +5 = 15 pt]

  1. Write down the continuous time transfer function from u(t) to y(t), when they are related by

my¨ + b y˙ + ky = γu.

  1. Call this transfer function Hc(s). Now derive the expression for the discrete time transfer function Hd(z) corresponding to this continuous time transfer function with Tustin approximation (in terms of the parameters m, b, k, γ, and the sampling period T ).
  2. For m = 0. 1 , b = 1. 0053 , k = 2. 5266 × 104 , and γ = 1000 compute the value of Hc(jω) for a number of ω values in the range 0 ≤ ω ≤ 105 rad/s, and plot the magnitude and phase of Hc(jω) so evaluated (i.e., the Bode plot). Use the MATLAB command bode to verify your Bode plot.
  3. Compute the poles of Hc(s) above for the aforementioned values of m, b, k, γ using the MATLAB zpkdata command. For these parameter values, numerically compute the poles of Hd(z) (using MATLAB) for the following two values of T : (1) 1 msec and (2) 1 μsec. You can convert continuous time models to discrete time models in MATLAB using Tustin transformation as shown in the following example:

s = tf(’s’); Hc = (4s + 3)/(s^2 + 2s +2) T = 0.001; Hd = c2d(Hc,T,’tustin’);

and then use zpkdata(Hd,′^ v′) to compute the poles and zeros. Is Hd(z) BIBO stable for both the sampling periods?

Prabir Barooah 1

EML 4930 Fall 2008

Problem 2. System ID [4+(5+3)*2 =20 pt]

  1. Derive the difference equation corresponding to Hd(z) derived above in terms of the coefficients of the numerator and denominator polynomials (the parameters γ, m, b, k are unknown).
  2. Use the least squares parameter estimation technique to identify Hd(z) from input output data. Use the function F simulate 2ndorder.p provided in the website to drive the system with a signal of your choice and record the output. How do you make sure your are getting a “good” estimate?
  3. Compute the parameters γ, m, b, k from the identified αi’s and βi’s of Hd(z).

Repeat the last two tasks for two sampling periods:(1) T = 10−^3 sec and T = 10−^6 sec. Can you determine in which case you get “better” estimates?

Problem 3. [10 pt] Let y[k] be the response of the following system due to an initial condition y[0] = y[1] = y[2] = 1:

y[k + 3] + 5y[k + 2] + 8y[k + 1] + 6y[k] = u[k]

with u[k] = 0 for all k. For an arbitrary ǫ > 0, how large does K 0 have to be such that |y[k]| < ǫ for all k > K 0? (Hint: it’ll depend on the pole of the transfer function that is closest to the unit circle, which is called the “least stable” pole.)

Prabir Barooah 2