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

frdata
11-82
11frdata
Purpose Quick access to data for a frequency response data object
Syntax [response,freq] = frdata(sys)
[response,freq,Ts] = frdata(sys)
[response,freq] = frdata(sys,'v')
Description [response,freq] = frdata(sys) returns the response da ta and frequency
samples of the FRD model
sys. For an FRD model with Ny outputs and Nu
inputs at Nf frequencies:
•
response is an Ny-by-Nu-by-Nf m ultidimensi ona l array whe re the (i,j)
entry specifies the response from input j to output i.
•
freq is a column vector of length Nf that contains the frequency samples of
the FRD mo del.
See Table 11 -14, “Da ta Forma t for the Argument resp onse in FRD Mod els, ” on
page 80 for more information on the data format for FRD response data.
For SISO F RD models, the syntax
[response,freq] = frdata(sys,'v')
forces frdata to return the response data and frequencies directly as column
vectors rather than as cell arrays (see example below).
[response,freq,Ts] = frdata(sys) also returns the sample time Ts.
Other properties of
sys can be accessed with get or by direct structure-like
referencing (e.g.,
sys.Units).
Arguments The input argument sys to frdata must be an FRD model.
Example Typing the commands
freq = logspace(1,2,2);
resp = .05*(freq).*exp(i*2*freq);
sys = frd(resp,freq);
[resp,freq] = frdata(sys,'v')