ss
Convert digital filter to state-space representation
Syntax
Description
Examples
State-Space Representation of a Lowpass IIR Filter
Design a lowpass IIR filter of order 6. Specify a normalized passband frequency of rad/sample. Compute the state-space representation of the filter.
d = designfilt('lowpassiir','FilterOrder',6,'PassbandFrequency',0.2); [A,B,C,D] = ss(d)
A = 6×6
1.5640 -0.9294 0 0 0 0
1.0000 0 0 0 0 0
0.1795 0.0036 1.6097 -0.8112 0 0
0 0 1.0000 0 0 0
0.0020 0.0000 0.0408 0.0021 1.6956 -0.7409
0 0 0 0 1.0000 0
B = 6×1
0.0913
0
0.0046
0
0.0001
0
C = 1×6
0.0020 0.0000 0.0408 0.0021 3.6956 0.2591
D = 5.2030e-05
Input Arguments
d
— Digital filter
digitalFilter
object
Digital filter, specified as a digitalFilter
object. Use designfilt
to generate a digital filter
based on frequency-response specifications.
Example: d =
designfilt('lowpassiir','FilterOrder',3,'HalfPowerFrequency',0.5)
specifies a third-order Butterworth filter with normalized 3 dB frequency 0.5π
rad/sample.
Output Arguments
A
— State matrix
matrix
State matrix, returned as a matrix.
Data Types: double
B
— Input-to-state matrix
matrix
Input-to-state matrix, returned as a matrix.
Data Types: double
C
— State-to-output matrix
matrix
State-to-output matrix, returned as a matrix.
Data Types: double
D
— Feedthrough matrix
matrix
Feedthrough matrix, returned as a matrix.
Data Types: double
Version History
Introduced in R2014a
See Also
designfilt
| digitalFilter
| tf
| zpk
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)