Skip to Main Content Skip to Search
Product Documentation

Function Reference


GUIsGraphical user interface functions
Numeric Linear ModelsCreate numeric LTI SISO and MIMO models
Generalized Linear ModelsCreate and manipulate generalized LTI models
Data ExtractionRetrieve data from LTI objects
ConversionsConvert between model formats
System InterconnectionsConnect models
System Gain and DynamicsRetrieve information about system gain and dynamics
Time Domain AnalysisAnalyze models in the time domain
Frequency Domain AnalysisAnalyze models in the frequency domain
Model SimplificationSimplify models
Compensator DesignImplement basic control design techniques
LQR/LQG DesignImplement linear-quadtratic-regulator/linear-quadratic-Gaussian techniques
State-Space ModelsCreate and manipulate SS models
Frequency Response Data Models Create and manipulate FRD models
Time DelaysSpecify and manipulate model time delays
Model Dimensions and CharacteristicsExtract information about models
Overloaded and Arithmetic OperatorsUse arithmetic operators to connect and manipulate models
Matrix Equation SolversSolve Lyapunov and Riccati equations
PreferencesSet Control System Toolbox preferences
Visualization of Model Dynamics and ResponsesCreate plots
Plot CustomizationCustomize plots from the command line

GUIs

ltiviewLTI Viewer for LTI system response analysis
pidtoolOpen PID Tuner for PID tuning
sisoinitConfigure SISO Design Tool at startup
sisotoolInteractively design and tune SISO feedback loops

Numeric Linear Models

delayssCreate state-space models with delayed inputs, outputs, and states
dssCreate descriptor state-space models
filtSpecify discrete transfer functions in DSP format
frdCreate frequency-response data model, convert to frequency-response data model
lti/expCreate pure continuous-time delays
pidCreate PID controller in parallel form, convert to parallel-form PID controller
pidstd Create a PID controller in standard form, convert to standard-form PID controller
setSet or modify model properties
setDelayModelConstruct state-space model with internal delays
ssCreate state-space model, convert to state-space model
tfCreate transfer function model, convert to transfer function model
zpkCreate zero-pole-gain model; convert to zero-pole-gain model

Generalized Linear Models

genfrdGeneralized frequency response data (FRD) model
genmatGeneralized matrix with tunable parameters
genssGeneralized state-space model
getBlockValueCurrent value of Control Design Block in Generalized Model
getLFTModelDecompose generalized LTI model
getValueCurrent value of Generalized Model
isParametricDetermine if model has tunable parameters
ltiblock.gainTunable static gain block
ltiblock.pidTunable PID controller
ltiblock.ssTunable fixed-order state-space model
ltiblock.tfTunable transfer function with fixed number of poles and zeros
nblocksNumber of blocks in Generalized matrix or Generalized LTI model
realpReal tunable parameter
replaceBlockReplace or update Control Design Blocks in Generalized LTI model
setBlockValueModify value of Control Design Block in Generalized Model
setValueModify current value of Control Design Block
showBlockValueDisplay current value of Control Design Block in Generalized Model

Data Extraction

dssdataExtract descriptor state-space data
frdataAccess data for frequency response data (FRD) object
getAccess model property values
getDelayModelState-space representation of internal delays
piddataAccess PID data
pidstddataAccess PIDSTD data
ssdataAccess state-space model data
tfdataAccess transfer function data
zpkdataAccess zero-pole-gain data

Conversions

c2dConvert model from continuous to discrete time
c2dOptionsCreate option set for continuous- to discrete-time conversions
chgFreqUnitChange frequency units of frequency-response data model
chgTimeUnitChange time units of dynamic system
d2cConvert model from discrete to continuous time
d2cOptionsCreate option set for discrete- to continuous-time conversions
d2dResample discrete-time model
d2dOptionsCreate option set for discrete-time resampling
frdCreate frequency-response data model, convert to frequency-response data model
pidCreate PID controller in parallel form, convert to parallel-form PID controller
pidstd Create a PID controller in standard form, convert to standard-form PID controller
ssCreate state-space model, convert to state-space model
tfCreate transfer function model, convert to transfer function model
thiranGenerate fractional delay filter based on Thiran approximation
upsampleUpsample discrete-time models
zpkCreate zero-pole-gain model; convert to zero-pole-gain model

System Interconnections

appendGroup models by appending their inputs and outputs
blkdiagBlock-diagonal concatenation of models
connectBlock diagram interconnections of dynamic systems
feedbackFeedback connection of two models
imp2expConvert implicit linear relationship to explicit input-output relation
lftGeneralized feedback interconnection of two models (Redheffer star product)
parallelParallel connection of two models
seriesSeries connection of two models
strseqCreate sequence of indexed strings
sumblkSumming junction for name-based interconnections

System Gain and Dynamics

bandwidthFrequency response bandwidth
dampNatural frequency; damping ratio
dcgainLow-frequency (DC) gain of LTI system
dsortSort discrete-time poles by magnitude
esortSort continuous-time poles by real part
iopzmapPlot pole-zero map for I/O pairs of model
modsepRegion-based modal decomposition
normNorm of linear model
orderQuery model order
poleCompute poles of dynamic system
pzmapPole-zero plot of dynamic system
stabsepStable-unstable decomposition of LTI model
stabsepOptionsCreate option set for stable/unstable decomposition
tzeroInvariant zeros of linear system
zeroZeros and gain of SISO dynamic system

Time Domain Analysis

covarOutput and state covariance of system driven by white noise
gensigGenerate test input signals for lsim
impulseImpulse response plot of dynamic system; impulse response data
initialInitial condition response of state-space model
lsimSimulate time response of dynamic system to arbitrary inputs
lsiminfoCompute linear response characteristics
lsimplotSimulate response of dynamic system to arbitrary inputs and return plot handle
stepStep response plot of dynamic system
stepinfoRise time, settling time, and other step response characteristics

Frequency Domain Analysis

allmarginGain margin, phase margin, delay margin and crossover frequencies
bodeBode plot of frequency response, magnitude and phase of frequency response
bodemagBode magnitude response of LTI models
db2magConvert decibels (dB) to magnitude
evalfrEvaluate frequency response at given frequency
freqrespFrequency response over grid
getGainCrossoverCrossover frequencies for specified gain
getPeakGainPeak gain of dynamic system frequency response
mag2dbConvert magnitude to decibels (dB)
marginGain margin, phase margin, and crossover frequencies
nicholsNichols chart of frequency response
nyquistNyquist plot of frequency response
sigmaSingular values plot of dynamic system

Model Simplification

balredModel order reduction
balredOptionsCreate option set for model order reduction
hsvdHankel singular values of dynamic system
hsvdOptionsCreate option set for computing Hankel singular values and input/output balancing
minrealMinimal realization or pole-zero cancelation
modredModel order reduction
sminrealStructural pole/zero cancellations

Compensator Design

estimForm state estimator given estimator gain
pidtunePID tuning algorithm for linear plant model
placePole placement design
regForm regulator given state-feedback and estimator gains
rlocus Root locus plot of dynamic system

LQR/LQG Design

augstateAppend state vector to output vector
dlqrLinear-quadratic (LQ) state-feedback regulator for discrete-time state-space system
kalmanKalman filter design, Kalman estimator
kalmdDesign discrete Kalman estimator for continuous plant
lqgLinear-Quadratic-Gaussian (LQG) design
lqgregForm linear-quadratic-Gaussian (LQG) regulator
lqgtrackForm Linear-Quadratic-Gaussian (LQG) servo controller
lqiLinear-Quadratic-Integral control
lqrLinear-Quadratic Regulator (LQR) design
lqrdDesign discrete linear-quadratic (LQ) regulator for continuous plant
lqryForm linear-quadratic (LQ) state-feedback regulator with output weighting

State-Space Models

balrealGramian-based input/output balancing of state-space realizations
canonState-space canonical realization
ctrbControllability matrix
drssGenerate random discrete test model
gramControllability and observability gramians
obsvObservability matrix
prescaleOptimal scaling of state-space models
rssGenerate random continuous test model
ss2ssState coordinate transformation for state-space model
xperm Reorder states in state-space models

Frequency Response Data Models

absEntrywise magnitude of frequency response
chgFreqUnitChange frequency units of frequency-response data model
fcatConcatenate FRD models along frequency dimension
fdelDelete specified data from frequency response data (FRD) models
fnormPointwise peak gain of FRD model
fselectSelect frequency points or range in FRD model
interpInterpolate FRD model

Time Delays

absorbDelayReplace time delays by poles at z = 0 or phase shift
hasdelayTrue for linear model with time delays
padePadé approximation of model with time delays
thiranGenerate fractional delay filter based on Thiran approximation
totaldelayTotal combined I/O delays for LTI model

Model Dimensions and Characteristics

isctDetermine if dynamic system model is in continuous time
isdtDetermine if dynamic system model is in discrete time
isemptyDetermine whether dynamic system model is empty
isproperDetermine if dynamic system model is proper
issisoDetermine if dynamic system model is single-input/single-output (SISO)
isstableDetermine whether system is stable
ndimsQuery number of dimensions of dynamic system model or model array
reshapeChange shape of model array
sizeQuery output/input/array dimensions of input–output model and number of frequencies of FRD model

Overloaded and Arithmetic Operators

+ and —Add and subtract systems (parallel connection)
*Multiply systems (series connection)
.*Element-by-element multiplication
\Left divide — sys1\sys2 means inv(sys1)*sys2
/Right divide — sys1/sys2 means sys1*inv(sys2)
^Powers of given system
'Pertransposition
.'Transposition of input/output map
[..]Concatenate models along inputs or outputs

conjForm model with complex conjugate coefficients
invInvert models
stackBuild model array by stacking models or model arrays along array dimensions

Matrix Equation Solvers

bdschurBlock-diagonal Schur factorization
careContinuous-time algebraic Riccati equation solution
dareSolve discrete-time algebraic Riccati equations (DAREs)
dlyapSolve discrete-time Lyapunov equations
dlyapcholSquare-root solver for discrete-time Lyapunov equations
gcareGeneralized solver for continuous-time algebraic Riccati equation
gdareGeneralized solver for discrete-time algebraic Riccati equation
lyapContinuous Lyapunov equation solution
lyapcholSquare-root solver for continuous-time Lyapunov equation

Preferences

ctrlprefSet Control System Toolbox preferences

Visualization of Model Dynamics and Responses

bodeplotPlot Bode frequency response with additional plot customization options
hsvplotPlot Hankel singular values and return plot handle
impulseplotPlot impulse response and return plot handle
initialplotPlot initial condition response and return plot handle
iopzplotPlot pole-zero map for I/O pairs and return plot handle
ngridSuperimpose Nichols chart on Nichols plot
nicholsplotPlot Nichols frequency responses and return plot handle
nyquistplotNyquist plot with additional plot customization options
pzplotPole-zero map of dynamic system model with plot customization options
rlocusplotPlot root locus and return plot handle
sgridGenerate s-plane grid of constant damping factors and natural frequencies
sigmaplotPlot singular values of frequency response and return plot handle
stepplotPlot step response and return plot handle
zgridGenerate z-plane grid of constant damping factors and natural frequencies

Plot Customization

bodeoptionsCreate list of Bode plot options
getoptionsReturn @PlotOptions handle or plot options property
hsvoptionsCreate list of Hankel singular value plot options
nicholsoptionsCreate list of Nichols plot options
nyquistoptionsList of Nyquist plot options
pzoptionsCreate list of pole/zero plot options
setoptionsSet plot options for response plot
sigmaoptionsCreate list of singular-value plot options
timeoptionsCreate list of time plot options
  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS