Lab 0: MATLAB & Simulink Problems
Important Note: Georgia Tech honor code applies to this and all other experiments in this course. Ask the TAs or the instructor for help if you have any questions on these problems.
MATLAB & Simulink
Problem 1 (10 points)
The longitudinal dynamic model of a Boeing 747 aircraft flying at a speed 870 ft/s is obtained as
where u change in flight speed expressed as a fraction of the equilibrium speed (non- dimensional) change in angle of attack from trim, rad q pitch rate, rad/sec change in pitch attitude from trim, rad change in elevator deflection from trim, rad
A = [-0.022 0.002 0 -0.037; -0.084 -0.392 1 0; -0.087 -1.56 -0.536 0 ; 0 0 1 0]
B = [0; -0.021; -1.209; 0]
C = [0 0 0 1] % Note: This selects pitch attitude as output
D = 0Answer the following questions:
For Problem 1, a printout of your MATLAB script with the answers written in the script using comments is acceptable. Attach the plots that have been asked.
(i) Find the eigenvalues and eigenvectors of the system matrix. (1 point)
(ii) Obtain the transfer function between the pitch attitude and the elevator control input. (2 points)
(iii) Obtain the poles of the transfer function of part (ii). Compare the poles of the transfer function with the eigenvalues of part (i). (2 points)
(iv) Compute the damping ratios, natural frequencies, damped frequencies and time periods of the individual modes. (2 points)
(v) Using the transfer function of part (ii), obtain frequency response plots (Bode plots). (1 point)
(vi) Plot the pitch attitude and pitch rate responses to a step elevator input of 0.02 rad. (2 points)
Problem 2 (10 points)
Consider the differential equation given by:
A SIMULINK model for this system is given in the following figure:

Using the figure as a guide, create your own Simulink model. For , , plot the position and the velocity over the time interval [0, 25] sec for the following cases. (i) r(t) is a unit step input, and zero initial conditions (1 point)
(ii) r(t) is zero, (1 point)
(iii) r(t) is zero, (1 point)
(iv) r(t) is a sinusoidal input of amplitude of 3 and frequency of 2 rad/s, i.e., and . (2 points)
Problem 3 (10 points)
The following differential equation describes the dynamics of a system:
where is the system output, and is the control input. It is required to implement a proportional plus derivative controller (PD controller) with control law of the form
Draw a SIMULINK block diagram for this system with as the input and as the output. (6 points)
Use
Simulate the closed-loop system response to the following command inputs of :
(a) pulse input of unit magnitude and pulse width of 2 seconds starting at s. (2 points)
(b) step input of magnitude 2 starting at s. (2 points)
Print out your SIMULINK diagram, command input plots and response plots.
Problem 4 (10 points)
Develop the following block diagram in SIMULINK. The “Zero Order Hold” block accounts for the sampling time in digital control systems. (4 points)
Run the simulation for a sampling time of 0.2, 0.5, 0.8, 1.5 and 2 seconds, for a period of 30 sec. Plot these 5 graphs superimposed on the same axis. (5 points)
What is the effect of sampling time on system response? (1 point)

Problem 5 (10 points)
Refer to question 1 for the state space matrices A and B as well as the defined state vector. You will need to determine the C and D matrices as needed. Using SIMULINK, create a conventional proportional controller for a pitch angle command system, using a gain of , i.e., . (5 points)
Simulate the response over a time range of to . Use a pitch angle pulse command input of magnitude of rad, pulse width of and the pulse starting at and ending at . Create plots of pitch angle command , pitch attitude and altitude () versus time. (5 points)

Appendix
The following material contains detailed information on how to use MATLAB for control that you might find useful throughout the semester.
Last updated
Was this helpful?