User`s guide

Table Of Contents
Creating LTI Models
2-19
For example, the MAT-file LTIexamples.mat contains a frequency vector freq,
and a corresponding complex frequency response data vector
respG.Toload
this frequency-domain data and construct an FRD model, type
load LTIexamples
sys = frd(respG,freq)
Continuous-time frequency response with 1 output and 1 input
at 5 frequency points.
From input 1 to:
Frequency(rad/s) output 1
---------------- --------
1 –0.812505 –0.000312i
2 –0.092593 –0.462963i
4 –0.075781 –0.001625i
5 –0.043735 –0.000390i
ThesyntaxforcreatingaMIMOFRDmodelisthesameasfortheSISOcase,
exceptthat
response is a p-by-m-by-N
f
multidimensional array, where p is the
number of outputs, m is the number of inputs, and N
f
is the number of
frequency d ata points (the length of
frequency).
The following table summarizes the complex-valued response data format for
FRD models.
Table 2-3: Data Format for the Argument response in FRD Models
Model Form Response Data Format
SISO model Vector of length Nf for which response(i) is the
frequency response at the frequency
frequency(i)
MIMO model
with
Ny outputs
and
Nu inputs
Ny-by-Nu-by-Nf multidimensional array for which
response(i,j,k) specifies the frequency response
from input
j to output i at frequency frequency(k)
S1
-by-...-by-Sn
array of models
with
Ny outputs
and
Nu inputs
Ny-by-Nu-by-S1-by-...-by-Sn multidimensional array,
for which
response(i,j,k,:) specifies the array of
frequency response data from input
j to output i at
frequency
frequency(k)