Function File: [H, w, tsam] = frdata (sys)
Function File: [H, w, tsam] = frdata (sys, "vector")
Access frequency response data.
Argument sys is not limited to frequency response data objects.
If sys is not a frd object, it is converted automatically.
Inputs
- sys
- Any type of LTI model or a real-valued matrix which is
interpreted as continous-time static gain.
- "v", "vector"
- In case sys is a SISO model, this option returns the frequency response
as a column vector (lw-by-1) instead of an array (p-by-m-by-lw).
Outputs
- H
- Frequency response array (p-by-m-by-lw). H(i,j,k) contains the
response from input j to output i at frequency k. In the SISO case,
a vector (lw-by-1) is possible as well, see input "vector".
- w
- Frequency vector (lw-by-1) in radian per second [rad/s].
Frequencies are in ascending order.
- tsam
- Sampling time in seconds. If sys is a continuous-time model,
a zero is returned.
Source Code:
frdata