Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Data extraction.
ssdata - Extract state-space matrices.
zpkdata - Extract zero/pole/gain data.
tfdata - Extract numerator(s) and denominator(s).
dssdata - Descriptor version of SSDATA.
get - Access values of LTI model properties.
Model characteristics.
class - Model type ('ss', 'zpk', or 'tf').
size - Input/output dimensions.
isempty - True for empty LTI models.
isct - True for continuous-time models.
isdt - True for discrete-time models.
isproper - True for proper LTI models.
issiso - True for single-input/single-output systems.
isa - Test if LTI model is of given type.
Conversions.
ss - Conversion to state space.
zpk - Conversion to zero/pole/gain.
tf - Conversion to transfer function.
c2d - Continuous to discrete conversion.
d2c - Discrete to continuous conversion.
d2d - Resample discrete system or add input delay(s).
Model dynamics.
pole, eig - System poles.
tzero - System transmission zeros.
pzmap - Pole-zero map.
dcgain - D.C. (low frequency) gain.
norm - Norms of LTI systems.
covar - Covariance of response to white noise.
damp - Natural frequency and damping of system poles.
esort - Sort continuous poles by real part.
dsort - Sort discrete poles by magnitude.
pade - Pade approximation of time delays.
State-space models.
rss,drss - Random stable state-space models.
ss2ss - State coordinate transformation.
canon - State-space canonical forms.
ctrb, obsv - Controllability and observability matrices.
gram - Controllability and observability gramians.
ssbal - Diagonal balancing of state-space realizations.
balreal - Gramian-based input/output balancing.
modred - Model state reduction.
minreal - Minimal realization and pole/zero cancellation.
augstate - Augment output by appending states.
Time response.
step - Step response.
impulse - Impulse response.
initial - Response of state-space system with given initial state.
lsim - Response to arbitrary inputs.
ltiview - Response analysis GUI.
gensig - Generate input signal for LSIM.
stepfun - Generate unit-step input.
Frequency response.
bode - Bode plot of the frequency response.
sigma - Singular value frequency plot.
nyquist - Nyquist plot.
nichols - Nichols chart.
ltiview - Response analysis GUI.
evalfr - Evaluate frequency response at given frequency.
freqresp - Frequency response over a frequency grid.
margin - Gain and phase margins.
System interconnections.
append - Group LTI systems by appending inputs and outputs.
parallel - Generalized parallel connection (see also overloaded +).
series - Generalized series connection (see also overloaded *).
feedback - Feedback connection of two systems.
star - Redheffer star product (LFT interconnections).
connect - Derive state-space model from block diagram description.
Demonstrations.
ctrldemo - Introduction to the Control System Toolbox.
jetdemo - Classical design of jet transport yaw damper.
diskdemo - Digital design of hard-disk-drive controller.
milldemo - SISO and MIMO LQG control of steel rolling mill.
kalmdemo - Kalman filter design and simulation.
help ss
help zpk
help tf
For SISO systems, NUM and DEN are row vectors listing the numerator and
denominator coefficients in
* descending powers of s or z by default
* ascending powers of q = z^-1 if 'Variable' is set to 'z^-1' or 'q'
(DSP convention).
For MIMO systems with NU inputs and NY outputs, NUM and DEN are
NY-by-NU cell arrays of row vectors where NUM{i,j} and DEN{i,j} specify
the transfer function from input j to output i. For example,
tf( {-5 ; [1 -5 6]} , {[1 -1] ; [1 1 0]})
specifies the two-output/one-input system
[ -5 /(s-1) ]
[ (s^2-5s+6)/(s^2+s) ]
help dss
help filt
In the SISO case, NUM and DEN are row vectors listing the numerator and
denominator coefficients in ascending powers of z^-1. In the MIMO case,
NUM and DEN are cell arrays of row vectors such that NUM{i,j} and
DEN{i,j} specify the transfer function from input j to output i.
See also TF
help set
SET Set object properties.
SET(H,'PropertyName',PropertyValue) sets the value of the
specified property for the graphics object with handle H.
H can be a vector of handles, in which case SET sets the
properties' values for all the objects.
SET(H,'PropertyName1',PropertyValue1,'PropertyName2',PropertyValue2,...)
sets multiple property values with a single statement. Note that it
is permissible to use property/value string pairs, structures, and
property/value cell array pairs in the same call to SET.
A = SET(H, 'PropertyName')
SET(H,'PropertyName')
returns or displays the possible values for the specified
property of the object with handle H. The returned array is
a cell array of possible value strings or an empty cell array
if the property does not have a finite set of possible string
values.
A = SET(H)
SET(H)
returns or displays all property names and their possible values for
the object with handle H. The return value is a structure whose
field names are the property names of H, and whose values are
cell arrays of possible property values or empty cell arrays.
set(gcf,'DefaultTextColor','red')
Overloaded methods
help zpk/set.m
help tf/set.m
help ss/set.m
help lti/set.m
help ltiprops
Below NU, NY, and NX refer to the number of inputs, outputs, and
states (when applicable).
help ssdata
help zpkdata
help tfdata
help dssdata
help get
GET(H) displays all property names and their current values for
the graphics object with handle H.
V = GET(H) where H is a scalar, returns a structure where each
field name is the name of a property of H and each field contains
the value of that property.
V = GET(0, 'Factory')
V = GET(0, 'Factory<ObjectType>')
V = GET(0, 'Factory<ObjectType><PropertyName>')
returns for all object types the factory values of all properties
which have user-settable default values.
V = GET(H, 'Default')
V = GET(H, 'Default<ObjectType>')
V = GET(H, 'Default<ObjectType><PropertyName>')
returns information about default property values (H must be
scalar). 'Default' returns a list of all default property values
currently set on H. 'Default<ObjectType>' returns only the
defaults for properties of <ObjectType> set on H.
'Default<ObjectType><PropertyName>' returns the default value
for the specific property, by searching the defaults set on H
and its ancestors, until that default is found. If no default
value for this property has been set on H or any ancestor of H
up through the root, then the factory value for that property
is returned.
Overloaded methods
help zpk/get.m
help tf/get.m
help ss/get.m
help lti/get.m
help class
help size
Overloaded methods
help zpk/size.m
help tf/size.m
help ss/size.m
help isempty
help isct
help isdt
help isproper
help issiso
help isa
help ss
help zpk
For SISO systems, Z and P are the vectors of zeros and poles
(set to [] if none) and K is the scalar gain.
help tf
For SISO systems, NUM and DEN are row vectors listing the numerator and
denominator coefficients in
* descending powers of s or z by default
* ascending powers of q = z^-1 if 'Variable' is set to 'z^-1' or 'q'
(DSP convention).
For MIMO systems with NU inputs and NY outputs, NUM and DEN are
NY-by-NU cell arrays of row vectors where NUM{i,j} and DEN{i,j} specify
the transfer function from input j to output i. For example,
tf( {-5 ; [1 -5 6]} , {[1 -1] ; [1 1 0]})
specifies the two-output/one-input system
[ -5 /(s-1) ]
[ (s^2-5s+6)/(s^2+s) ]
help c2d
help d2c
Overloaded methods
help zpk/d2c.m
help tf/d2c.m
help ss/d2c.m
help d2d
Overloaded methods
help zpk/d2d.m
help tf/d2d.m
help ss/d2d.m
help pole
--- help for zpk/pole.m ---
help eig
Overloaded methods
help lti/eig.m
help tzero
Overloaded methods
help lti/tzero.m
help pzmap
Overloaded methods
help lti/pzmap.m
help dcgain
Overloaded methods
help zpk/dcgain.m
help tf/dcgain.m
help ss/dcgain.m
help norm
For vectors...
NORM(V,P) = sum(abs(V).^P)^(1/P).
NORM(V) = norm(V,2).
NORM(V,inf) = max(abs(V)).
NORM(V,-inf) = min(abs(V)).
Overloaded methods
help lti/norm.m
help covar
Overloaded methods
help lti/covar.m
help damp
Wn = abs(log(lamba))/Ts , Z = -cos(angle(log(lamba))) .
Overloaded methods
help lti/damp.m
help esort
help dsort
Overloaded methods
help lti/pade.m
help rss
help drss
help ss2ss
. -1
z = [TAT ] z + [TB] u
-1
y = [CT ] z + D u
(Respectively,
-1 . -1
[TET ] z = [TAT ] z + [TB] u
-1
y = [CT ] z + D u
Overloaded methods
help ss/ss2ss.m
help lti/ss2ss.m
help canon
Overloaded methods
help ss/canon.m
help lti/canon.m
help ctrb
Overloaded methods
help lti/ctrb.m
help obsv
Overloaded methods
help lti/obsv.m
help gram
Overloaded methods
help lti/gram.m
help ssbal
help balreal
Overloaded methods
help ss/balreal.m
help lti/balreal.m
help modred
If SYS has been balanced with BALREAL and the gramians have M
small diagonal entries, you can reduce the model order by
eliminating the last M states with MODRED.
Overloaded methods
help ss/modred.m
help lti/modred.m
help minreal
SYSr = MINREAL(SYS)
For state-space LTI systems SYS, this produces a minimal
realization SYSr of SYS. For transfer function or
zero/pole/gain models, SYSr is a simplified model where
all common poles and zeros have been cancelled.
Overloaded methods
help zpk/minreal.m
help tf/minreal.m
help ss/minreal.m
help augstate
Overloaded methods
help ss/augstate.m
help lti/augstate.m
help step
Overloaded methods
help lti/step.m
help impulse
Overloaded methods
help lti/impulse.m
help initial
Overloaded methods
help lti/initial.m
help lsim
LSIM(SYS,U,T) plots the time response of the LTI system SYS to the
input signal described by U and T. The time vector T consists of
regularly spaced time samples and U is a matrix with as many columns
as inputs and whose i-th row specifies the input value at time T(i).
For instance,
t = 0:0.01:5; u = sin(t); lsim(sys,u,t)
simulates the response of SYS to u(t) = sin(t) during 5 seconds.
Overloaded methods
help lti/lsim.m
help ltiview
LTIVIEW(PLOTTYPE,SYS1,PLOTSTR1,SYS2,PLOTSTR2,...SYSN,PLOTSTRN)
initializes
an LTI Viewer with the responses of multiple LTI systems, each represented
by a line with the characteristics in the associated PLOTSTR. A color
linestyle, and marker may be contained in each PLOTSTR string. For
example, 'r' is a solid red line, 'b--' is a dashed blue line, and
'm*:' is a dotted magenta line with astericks as markers.
LTIVIEW('clear',Hviewers) clears the plots and data from the LTI Viewers
with the handles provided in Hviewers.
LTIVIEW('current',SYS1,PLOTSTR1,SYS2,PLOTSTR2,...SYSN,PLOTSTRN,Hviewers)
appends the responses for the systems in SYS# to the LTI Viewers with the
handles provided in Hviewers, if the systems have the same dimensions as
those currently in the LTI Viewer. If the dimensions are different, the LTI
Viewer is first cleared and only the new responses are shown. The response
type will be the one currently selected by the Plot Type popup menu.
See also STEP, IMPULSE, BODE, NYQUIST, NICHOLS, SIGMA, LSIM, INITIAL
help gensig
GENSIG Periodic signal generator for time response simulations with LSIM.
help stepfun
help bode
BODE(SYS) draws the Bode plot of the LTI system SYS. The
frequency range and number of points are chosen automatically.
For discrete systems with sample time Ts, BODE uses the
transformation Z = exp(j*W*Ts) to map the unit circle to the
real frequency axis. The frequency response is only plotted
for frequencies smaller than the Nyquist frequency pi/Ts, and
the default value 1 (second) is assumed when Ts is unspecified.
Overloaded methods
help lti/bode.m
help sigma
Overloaded methods
help lti/sigma.m
help nyuist
help nyquist
Overloaded methods
help lti/nyquist.m
help nichols
Overloaded methods
help lti/nichols.m
help evalfr
help freqresp
Overloaded methods
help zpk/freqresp.m
help tf/freqresp.m
help ss/freqresp.m
help margin
help append
[ Sys1 0 ]
SysOut = [ 0 Sys2 ]
[ . }
[ .]
Overloaded methods
help zpk/append.m
help tf/append.m
help ss/append.m
help parallel
+------+
v1 ---------->| |----------> z1
| SYS1 |
u1 +-->| |---+ y1
| +------+ |
u ------>+ O------> y
| +------+ |
u2 +-->| |---+ y2
| SYS2 |
v2 ---------->| |----------> z2
+------+
Overloaded methods
help lti/parallel.m
help series
+------+
v2 --->| |
+------+ | SYS2 |-----> y2
| |------->| |
u1 ----->| |y1 u2 +------+
| SYS1 |
| |---> z1
+------+
If OUTPUTS1 and INPUTS2 are omitted, SERIES connects SYS1 and SYS2
in cascade and returns
SYS = SYS2 * SYS1 .
Overloaded methods
help lti/series.m
help feedback
The vector FEEDIN contains indices into the input vector of SYS1
and specifies which inputs u are involved in the feedback loop.
Similarly, FEEDOUT specifies which outputs y of SYS1 are used for
feedback. If SIGN=1 then positive feedback is used. If SIGN=-1
or SIGN is omitted, then negative feedback is used. In all cases,
the resulting system SYS has the same inputs and outputs as SYS1
(with their order preserved).
Overloaded methods
help zpk/feedback.m
help tf/feedback.m
help ss/feedback.m
help star
+-------+
w1 -------->| |-------> z1
| SYS1 |
+---->| |-----+
| +-------+ |
u| |y
| +-------+ |
+-----| |<----+
| SYS2 |
z2 <---------| |-------- w2
+-------+
The feedback loop connects the first NU outputs of SYS2 to the
last NU inputs of SYS1 (signals u), and the last NY outputs of
SYS1 to the first NY inputs of SYS2 (signals y). The resulting
system SYS maps the input vector [w1;w2] to the output vector
[z1;z2].
help connect
Overloaded methods
help lti/connect.m
help rlocus
For a SISO system SYS with numerator N(s) and denominator D(s),
RLOCUS(SYS) calculates and plots the locus of the roots of
H(s) = D(s) + k * N(s) = 0
Overloaded methods
help lti/rlocus.m
help rlocfind
Overloaded methods
help lti/rlocfind.m
help acker
help place
help estim
Overloaded methods
help lti/estim.m
help reg
You can use pole placement techniques (see PLACE) to design the
gains K and L, or alternatively use the LQ and Kalman gains
produced by LQR/DLQR and KALMAN.
See also ESTIM, PLACE, LQR, DLQR, LQGREG, KALMAN.
Overloaded methods
help lti/reg.m
help lqr
The matrix N is set to zero when omitted. Also returned are the
Riccati equation solution S and the closed-loop eigenvalues E:
-1
SA + A'S - (SB+N)R (B'S+N') + Q = 0 , E = EIG(A-B*K) .
help dlqr
The matrix N is set to zero when omitted. Also returned are the
Riccati equation solution S and the closed-loop eigenvalues E:
-1
A'SA - S - (A'SB+N)(R+B'SB) (B'SA+N') + Q = 0, E = EIG(A-B*K).
help lqry
The matrix N is set to zero when omitted. Also returned are the
the solution S of the associated algebraic Riccati equation and
the closed-loop eigenvalues E = EIG(A-B*K).
Overloaded methods
help lti/lqry.m
help lqrd
|y_e| = | C | x_e + | D | u
|x_e| | I | |0|
The LTI system SYS contains the plant data (A,[B G],C,[D H]),
and Nn is set to zero when omitted. The Kalman estimator KEST
is continuous when SYS is continuous, discrete otherwise.
Also returned are the estimator gain L and the steady-state
error covariance P. In continuous time with H=0, P solves the
Riccati equation
-1
AP + PA' - (PC'+G*N)R (CP+N'*G') + G*Q*G' = 0 .
help kalmd
The LTI system SYS specifies the plant data (A,[B G],C,[D 0]).
The continuous plant and covariance matrices (Q,R) are first
discretized using the sample time Ts and zero-order hold
approximation, and the discrete Kalman estimator for the
resulting discrete plant is then calculated with KALMAN.
help lqgreg
+---------------------------+
u| |
+--->| | x_e |
| KEST |------>| -K |--+-----> u
y -------->| |
+---------------------------+
u| |
+--->| | x_e |
Ud -------->| KEST |------>| -K |--+-----> u
y -------->| |
help lyap
A*X + X*A' = -C
A*X + X*B = -C
help dlyap
A*X*A' - X + Q = 0
help care
When omitted, R,S and E are set to the default values R=I, S=0,
and E=I. Additional optional outputs include the gain matrix
-1
G = R (B'XE + S') ,
help dare
When omitted, R,S and E are set to the default values R=I, S=0,
and E=I. Additional optional outputs include the gain matrix
-1
G = (B'XB + R) (B'XA + S'),