User`s guide

Table Of Contents
covar
11-41
and MATLAB returns
p =
30.3167
You ca n compare t his output of covar to simulation results.
randn('seed',0)
w = sqrt(5)
randn(1,1000); % 1000 samples
% Simulate response to w with LSIM:
y = lsim(sys,w);
% Compute covariance of y values
psim = sum(y . y)/length(w);
This yields
psim =
32.6269
The two covariance values p and psim do not agree perfectly due to the finite
simulation horizon.
Algorithm Transfer functionsand zero-pole-gain models are first converted to state space
with
ss.
For continuous-time state-space models
is obtained by solving the Lyapunov equation
The output response covaria nce is finite only w hen and then
.
In discrete time, the state c ovariance solves the discrete Lyapunov equation
x
·
Ax Bw+=
yCxDw+=
Q
AQ QA
T
BWB
T
++ 0=
P
D0
=
PCQC
T
=
AQA
T
Q BWB
T
+ 0=