Function File: [sys, n] = fitfrd (dat, n)
Function File: [sys, n] = fitfrd (dat, n, flag)
Fit frequency response data with a state-space system.
If requested, the returned system is stable and minimum-phase.
Inputs
- dat
- LTI model containing frequency response data of a SISO system.
- n
- The desired order of the system to be fitted.
n <= length(dat.w).
- flag
- The flag controls whether the returned system is stable and minimum-phase.
- 0
- The system zeros and poles are not constrained. Default value.
- 1
- The system zeros and poles will have negative real parts in the
continuous-time case, or moduli less than 1 in the discrete-time case.
Outputs
- sys
- State-space model of order n, fitted to frequency response data dat.
- n
- The order of the obtained system. The value of n
could only be modified if inputs
n > 0 and flag = 1.
Algorithm
Uses SLICOT SB10YD,
Copyright (c) 1996-2025, SLICOT, available under the BSD 3-Clause
(License and Disclaimer).
Source Code:
fitfrd