% state-space representation of 2nd order systems in minimum
% round-off noise form
%  lab6_1.m * mw * 02/25/2007
b = [1 2 1]; a = [1 -1.4 .74];  % numerator and denominator
ssr = ssr_mron(b,a);            % minumim round-off noise form
fprintf('lab6_1: State-space representation, Form = %s \n',ssr.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)
lab6_1: State-space representation, Form = MNF 
Matrix A
    0.7000   -0.4693
    0.5327    0.7000

Vector b
    0.6709
    0.2102

Vector cT
    0.2785    0.8886

Scalar d
    0.1099

Covariance matrix K
    1.0000    0.2440
    0.2440    1.0000

Covariance matrix W
    1.7543    0.4281
    0.4281    1.7543

Structure 
MNF