MATLAB CONTROL SYSTEM TOOLBOX 9 Specifikace Strana 239

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 591
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 238
Kalman Filtering
10-55
'v'
'u'
SimModel.outputname
ans =
'y'
'y_e'
You are now ready to simulate the filter behavior. Generate a sinusoidal input
and process and measurement noise vectors and .
t = [0:100]';
u = sin(t/5);
n = length(t)
randn('seed',0)
w = sqrt(Q)*randn(n,1);
v = sqrt(R)*randn(n,1);
Now simulate with lsim.
[out,x] = lsim(SimModel,[w,v,u]);
y = out(:,1); % true response
ye = out(:,2); % filtered response
yv = y + v; % measured response
and compare the true and filtered responses graphically.
subplot(211), plot(t,y,'--',t,ye,'-'),
xlabel('No. of samples'), ylabel('Output')
title('Kalman filter response')
subplot(212), plot(t,y-yv,'-.',t,y-ye,'-'),
uwv
Zobrazit stránku 238
1 2 ... 234 235 236 237 238 239 240 241 242 243 244 ... 590 591

Komentáře k této Příručce

Žádné komentáře