%% State-Space Representation of a Lowpass IIR Filter
% Design a lowpass IIR filter of order 6. Specify a normalized passband frequency of 0.2\pi rad/sample. Compute the state-space representation of the filter.

d = designfilt('lowpassiir','FilterOrder',6,'PassbandFrequency',0.2);
[A,B,C,D] = ss(d)

% Copyright 2015 The MathWorks, Inc.