Docsity

Assignment Nine - Spring 2009 - Control Systems | ELE 312, Assignments of Control Systems

Toggle sidebar
bg1
ELE 312 HW 9 Spring 2009
Due Thursday 04-16-09
For the following problems, please turn in both the solution and the MATLAB code you wrote to generate it.
0. Review the attached pages on important MATLAB commands.
1. Chapter 4, Problem 13.
You can use the solutions to homework 4 to find the transfer function from input to capacitor voltage.
2. Chapter 4, Problem 62 c.
You can use the solutions to homework 6 to find the answers for parts b,c and the phugoid approxi-
mation.
3. Chapter 5, Problem 51 a,c.
4. Chapter 6, Problem 10.
5. Chapter 7, Problem 34, find the steady-state error for the input 30 u(t).
6. Chapter 8, Problem 33.
For part a, ignore the statement asking you to pause. For part b, use the command axis([-2,0,-2,2]).
For part c, first compute ζfrom formula (4.39) on page 171 of your textbook, then use the command
sgrid(zeta,0). For part d, click on the root locus plot at the point of intersection to find the
value of k. Now use this value of kto find the closed-loop poles and to generate the step response.
(Another method to find kand to compute the closed-loop poles for part d is to use the command
[k,p]=rlocfind(G). Once executed, this command returns the value of the gain kand the location of
the closed-loop poles pfor any desired location on the root locus plot. Note that before you can run
this command you have to first generate the root locus plot.)
7. Chapter 10, Problem 36.
8. [Bonus Problems] Chapter 8, Problems 34, 40.
1
pf3

Partial preview of the text

Download Assignment Nine - Spring 2009 - Control Systems | ELE 312 and more Assignments Control Systems in PDF only on Docsity!

ELE 312 HW 9 Spring 2009

Due Thursday 04-16-

For the following problems, please turn in both the solution and the MATLAB code you wrote to generate it.

0. Review the attached pages on important MATLAB commands.

1. Chapter 4, Problem 13.

You can use the solutions to homework 4 to find the transfer function from input to capacitor voltage.

2. Chapter 4, Problem 62 c.

You can use the solutions to homework 6 to find the answers for parts b,c and the phugoid approxi-

mation.

3. Chapter 5, Problem 51 a,c.

4. Chapter 6, Problem 10.

5. Chapter 7, Problem 34, find the steady-state error for the input 30 u(t).

6. Chapter 8, Problem 33.

For part a, ignore the statement asking you to pause. For part b, use the command axis([-2,0,-2,2]).

For part c, first compute ζ from formula (4.39) on page 171 of your textbook, then use the command

sgrid(zeta,0). For part d, click on the root locus plot at the point of intersection to find the

value of k. Now use this value of k to find the closed-loop poles and to generate the step response.

(Another method to find k and to compute the closed-loop poles for part d is to use the command

[k,p]=rlocfind(G). Once executed, this command returns the value of the gain k and the location of

the closed-loop poles p for any desired location on the root locus plot. Note that before you can run

this command you have to first generate the root locus plot.)

7. Chapter 10, Problem 36.

8. [Bonus Problems] Chapter 8, Problems 34, 40.

%% transfer functions %% %%%%%%%%%%%%%%%%%%%%%%%% numG = 3; denG = [1,2,5,0]; G = tf(numG,denG) % specify G by coeff of its num & den polynomials G_factored = zpk(G) % returns G in factored form (s+z1)(..)/(s+p1)(...) numG = 2500; denG = conv([1,15],[1,10,100]); % specify polynomial by its factors G = tf(numG,denG); G_factored = zpk(G) G = zpk([],[-1,-2,-2],2) % specify G by its zeros/poles/gain numG = 2; denG = poly([-1,-2,-2]); % specify polynomial by its zeros G = tf(numG,denG) numG = [1,4,5]; denG = conv([1 2 5],poly([-3,-4])); % a mix of the conv & poly commands to specify G G = tf(numG,denG); G_factored = zpk(G) syms s % treat s as a symbolic variable and not a number s = tf('s'); % treat s as the Laplace variable H = 1/(s^3 + 5s^2 + 8s + 4) % specify G as a ratio of polynomials in Laplace variable s zero(G) % gives zeros of G pole(G) % gives poles of G %%%%%%%%%%%%%%%%%%%%%%%%%% %% time domain analysis %% %%%%%%%%%%%%%%%%%%%%%%%%%% step(G) % step response of G t_range = 0 : 0.01 : 10; step(G,t_range) % step response over time interval specified by t_range step(G,H) % compare the step responses of G and H StStGain = dcgain(G) % to compute steady-state gain [K,p] = residue(numG,denG) % gives coeff of partial frac exp & corresp poles syms s g = ilaplace(3/(s(s^2 + 2s + 5))) % inverse laplace pretty(g) % beautifies the time domain expression %%%%%%%%%%%%%%%%%%%%%% %% interconnections %% %%%%%%%%%%%%%%%%%%%%%% numH = 1; denH = [1,0]; H = tf(numH,denH) GH = series(G,H) % series interconnection of G and H GH = G*H % another way to find series connection of G and H G_plus_H = parallel(G,H) % parallel interconnection of G and H G_plus_H = G+H % another way to find parallel interconnection of G and H H_cl = feedback(H,1) % unity feedback of H G_cl = feedback(G,H) % feedback of G and H