Some Useful Matlab and Control Systems
Toolbox Functions
Creating and converting linear models
tf
zpk
ss
feedback
c2d
d2c
Create (or convert to) a transfer function model.
Create (or convert to) a zero/pole/gain model.
Create (or convert to) a state-space model.
Feedback connection of two systems.
Continuous to discrete conversion.
Discrete to continuous conversion.
Model analysis
dcgain
bandwidth
pole
eig
zero
pzmap
damp
ltiview
step
impulse
lsim
bode
ctrb
obsv
poly
D.C. (low frequency) gain.
System bandwidth.
System poles.
System eigenvalues.
System zeros.
Pole-zero map.
Natural frequency and damping of system poles.
Response analysis GUI (LTI Viewer).
Step response.
Impulse response.
Response to arbitrary inputs.
Bode diagrams of the frequency response.
Controllability matrix (for ss models).
Observability matrix (for ss models).
Convert roots to polynomial.
Design tools
place
acker
sisotool
rlocus
rltool
MIMO pole placement.
SISO pole placement.
SISO design GUI (root locus and loop shaping techniques).
Evans root locus.
Runs the SISO design GUI set up for root locus.
Data visualization and storage
figure
clf
plot
stairs
save
load
Create figure window.
Clear current figure.
Plot data.
Stair-step graph.
Save workspace variables to disk.
Load workspace variables from disk.
Simulink – MATLAB
trim
linmod
Finds steady state parameters for a Simulink system.
Linearize a Simulink model around an operating point.
1
Simulink blocks
Integrator
Continuous-time integration of the input signal.
Derivative
Numerical derivative: du/dt.
Gain
Element-wise gain (y=K.*u) or matrix gain (y=K*u or y=u*K).
Sum
Add or substract inputs.
Step
Output a step.
Scope
2