User`s guide
Table Of Contents
- Preface
- Quick Start
- LTI Models
- Introduction
- Creating LTI Models
- LTI Properties
- Model Conversion
- Time Delays
- Simulink Block for LTI Systems
- References
- Operations on LTI Models
- Arrays of LTI Models
- Model Analysis Tools
- The LTI Viewer
- Introduction
- Getting Started Using the LTI Viewer: An Example
- The LTI Viewer Menus
- The Right-Click Menus
- The LTI Viewer Tools Menu
- Simulink LTI Viewer
- Control Design Tools
- The Root Locus Design GUI
- Introduction
- A Servomechanism Example
- Controller Design Using the Root Locus Design GUI
- Additional Root Locus Design GUI Features
- References
- Design Case Studies
- Reliable Computations
- Reference
- Category Tables
- acker
- append
- augstate
- balreal
- bode
- c2d
- canon
- care
- chgunits
- connect
- covar
- ctrb
- ctrbf
- d2c
- d2d
- damp
- dare
- dcgain
- delay2z
- dlqr
- dlyap
- drmodel, drss
- dsort
- dss
- dssdata
- esort
- estim
- evalfr
- feedback
- filt
- frd
- frdata
- freqresp
- gensig
- get
- gram
- hasdelay
- impulse
- initial
- inv
- isct, isdt
- isempty
- isproper
- issiso
- kalman
- kalmd
- lft
- lqgreg
- lqr
- lqrd
- lqry
- lsim
- ltiview
- lyap
- margin
- minreal
- modred
- ndims
- ngrid
- nichols
- norm
- nyquist
- obsv
- obsvf
- ord2
- pade
- parallel
- place
- pole
- pzmap
- reg
- reshape
- rlocfind
- rlocus
- rltool
- rmodel, rss
- series
- set
- sgrid
- sigma
- size
- sminreal
- ss
- ss2ss
- ssbal
- ssdata
- stack
- step
- tf
- tfdata
- totaldelay
- zero
- zgrid
- zpk
- zpkdata
- Index

freqresp
11-84
11freqresp
Purpose Compute frequency response over grid of frequencies
Syntax H = freqresp(sys,w)
Description H = freqresp(sys,w) computes the frequency response of the LTI model sys
at the real frequency points specified by the vector w. The frequencies must be
in radians/sec. For single LTI Models,
freqresp(sys,w) returns a 3-D array H
with the frequency as the last dimension (see “Arguments” below). For LTI
arrays of size
[Ny Nu S1 ... Sn], freqresp(sys,w) returns a [Ny–by–Nu–by–
S1–by–...–by–Sn] length (w) array.
Incontinuous time,the responseat a frequencyω isthe transferfunction value
at . For state-space models, this value is given by
In discrete time, the real frequencies
w(1),..., w(N) are mapped to points on the
unit circle using the transformation
where is the sample time. The transfer function is t hen evaluated at the
resulting values. The default is used for models with unspecified
sample time.
Remark If sys is an FRD model, freqresp(sys,w), w can o nly include frequencies in
sys.frequency.
Arguments The output argument H is a 3-D array with dimensions
For SISO systems,
H(1,1,k) gives the scalar response at t he frequency w(k).
For MIMO systems, the frequency responseat
w(k) is H(:,:,k),amatrixwith
as many rows as outputs and as many columns as inputs.
Example Compute the frequency response of
sj
ω=
Hjω() DCjωIA–()
1
–
B+=
ze
j
ω
T
s
=
T
s
z
T
s
1
=
number of outputs
()
number of inputs
()×
length of
w()×