You are here : matlabSignal Processingss

ss() - Signal Processing

[A,B,C,D]
= ss(d) converts a digital filter, d,
to its state-space representation.The state-space representation of a filter is given byx(k+1)=Ax(k)+Bu(k),y(k)=Cx(k)+Du(k),where x is the state vector, u is
the input vector, and y is the output vector.


Syntax

[A,B,C,D]
= ss(d) example


Example

State-Space Representation of a Lowpass IIR FilterOpen This Example
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 =

    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 =

    0.0913
         0
    0.0046
         0
    0.0001
         0


C =

    0.0020    0.0000    0.0408    0.0021    3.6956    0.2591


D =

   5.2030e-05


Output / Return Value


Limitations


Alternatives / See Also


Reference