035188 2011 3

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ons = 1; 035188 2011 - [TimeVec x y] = sim('Sys',[0 length(t)*dt],,Input); figure; subplot(1,2,1); plot(t,r,'r--',TimeVec,y,'LineWidth',2) grid on axis([0 t(end) ylim]) xlabel('Time') ylabel('r(t) and y(t)') title(sprintf('k_z = %g \\rho = %g k_w = %g %g',kz,rho,kw,sigma)) legend('r(t)','y(t)') \\sigma = subplot(1,2,2); plot(TimeVec,x(:,2),'r',TimeVec,x(:,4),'b--','LineWidth',2) grid on axis([0 t(end) ylim]) xlabel('Time') ylabel('x_2(t) and estimated x_2(t)') title('Kalman Filter response') legend('Rea...
View Full Document

This note was uploaded on 06/30/2011 for the course MECHANICAL 034406 taught by Professor Leonidmirkin during the Spring '10 term at Technion.

Ask a homework question - tutors are online