Contents

% 2nd order filter in state-space representation with respect to
% direct form II and normal form with l2 scaling
%  Form : 'DF2','NF2' - directform II, normal form
% lab5_3.m * mw * 02/23/2007

2nd order system

b = [1 2 1]; a = [1 -1.4 .74];    % numerator and denominator
Form = 'NF2';
ssr = ssr_ABCDKW(b,a,Form);
fprintf('lab5_3: State-space representation, Form = %s \n',Form)
fprintf('Matrix A\n'), disp(ssr.A)
fprintf('Vector b\n'), disp(ssr.B)
fprintf('Vector cT\n'), disp(ssr.C)
fprintf('Scalar d\n'), disp(ssr.D)
fprintf('Covariance matrix K\n'), disp(ssr.K)
fprintf('Covariance matrix W\n'), disp(ssr.W)
fprintf('Structure \n'), disp(ssr.form)
lab5_3: State-space representation, Form = NF2 
Matrix A
    0.7000   -0.6030
    0.4146    0.7000

Vector b
         0
    0.6624

Vector cT
   -0.7264    0.5641

Scalar d
    0.1099

Covariance matrix K
    1.0000   -0.1735
   -0.1735    1.0000

Covariance matrix W
    1.3225   -0.4138
   -0.4138    2.2515

Structure 
NF2