MATLAB CONTROL SYSTEM TOOLBOX 9 Guia do Utilizador Página 367

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 649
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 366
Kalman Filtering
9-59
you can implement the time-varying filter with the following for loop.
P = B*Q*B'; % Initial error covariance
x = zeros(3,1); % Initial condition on the state
ye = zeros(length(t),1);
ycov = zeros(length(t),1);
for i=1:length(t)
% Measurement update
Mn = P*C'/(C*P*C'+R);
x = x + Mn*(yv(i)–C*x); % x[n|n]
P = (eye(3)–Mn*C)*P; % P[n|n]
ye(i) = C*x;
errcov(i) = C*P*C';
% Time update
x = A*x + B*u(i); % x[n+1|n]
P = A*P*A' + B*Q*B'; % P[n+1|n]
end
Vista de página 366
1 2 ... 362 363 364 365 366 367 368 369 370 371 372 ... 648 649

Comentários a estes Manuais

Sem comentários