System Analysis 6-1
System Analysis
MATLAB® and Simulink® for Control Design Acceleration
© 2014 MathWorks, Inc.
System Analysis 6-2
Outline
• System analysis functions
• Linear System Analyzer
• DC motor analysis
• Automation
• Open-loop analysis
System Analysis 6-4
Analysis Goals
Common goals
• Stability
• Transient response
• Frequency response
System analysis is often much easier for
linear models than for nonlinear models.
System Analysis 6-5
Analysis Functions
Textual Graphical
zero ltiview
pole
stepinfo
bode
margin
step
pzmap
evalfr
bandwidth impulse
dcgain lsim
damp nichols
nyquist
bodemag
System Analysis 6-6
DC Motor Model
>> dcmotor = createSimpleDC(0.5,2)
Armature Load
Va + 1
Km
- Ls R Js K f
Kb
Back EMF
System Analysis 6-7
Linear System Analyzer
System Analysis 6-8
Poles and Zeros
>> pole(dcmotor)
>> zero(dcmotor)
System Analysis 6-9
Poles and Step Response
Imaginary
x x
x x
Real
x x
x
Converges Diverges
System Analysis 6 - 10
Viewing System Characteristics
>> stepinfo(dcmotor)
>> damp(dcmotor)
System Analysis 6 - 11
Frequency-Domain Analysis
>> bandwidth(dcmotor)
>> dcgain(dcmotor)
System Analysis 6 - 12
Scripting Analysis Functions
function dcmotor = createSimpleDC(R,L)
>> dc_orig = createSimpleDC(0.5,2); >> dc_orig = createSimpleDC(0.5,2);
>> dc_lowR = createSimpleDC(0.1,2); >> dc_lowL = createSimpleDC(0.5,0.5);
>> dc_highR = createSimpleDC(2.5,2); >> dc_highL = createSimpleDC(0.5,8);
>> bode(dc_orig,dc_lowR,dc_highR) >> bode(dc_orig,dc_lowL,dc_highL)
System Analysis 6 - 13
Open-Loop Characteristics
+ 1
K
- s
>> pureInt = tf(1,[1 0])
>> openLoop = dcmotor*pureInt
>> ltiview(openLoop)
>> [Gm,Pm,Wg,Wp] = ...
margin(openLoop)
System Analysis 6 - 15
Open-Loop Characteristics (Continued)
+ 1
K
- s
>> pureInt = tf(1,[1 0])
>> openLoop = dcmotor*pureInt
>> rlocus(openLoop)
System Analysis 6 - 16
Summary
• System analysis functions
• Linear System Analyzer
• DC motor analysis
• Automation
• Open-loop analysis
System Analysis 6 - 17
Test Your Knowledge
1. Name some typical system characteristics that can be
obtained from a step response plot.
2. Name some typical system characteristics that can be
obtained from a Bode plot.
3. What is the main graphical analysis tool used in the
Control System Toolbox?
System Analysis 6 - 18
Test Your Knowledge
4. What function from the Control System Toolbox returns
the pole locations of an LTI object?
5. What function from the Control System Toolbox returns
the gain and phase margins of an open-loop system?