root/matlab/pmsm/pmsm_disp.m @ 367

Revision 221, 0.8 kB (checked in by smidl, 16 years ago)

matlab directory cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Rev Author Date
Line 
1itload('../pmsm.it')
2figure(1);
3plot(xthM(1,:)')
4set(gca,'YLim',[0,0.4])
5hold on
6plot([0,10000],0.1*[1,1],'--')
7legend('\hat{q}_t using EKF-PF','simulated value')
8legend('expected value of q_t using EKF-PF','simulated value')
9xlabel('time index')
10%set(gcf,'PaperPositionMode','auto');
11%print -deps2 ekf
12
13figure(2);
14subplot(2,1,1)
15plot(xth(3,:)','--')
16hold on
17plot(xthE(3,:)',':')
18plot(xthM(5,:)')
19legend('Simulated \omega','Estimated \omega using EKF ', 'Estimated \omega using EKF-MPF ');
20xlabel('time index')
21%set(gca,'XLim',[2300,3000]);
22
23subplot(2,1,2)
24hold off
25plot(xth(4,:)','--')
26hold on
27plot(xthE(4,:)',':')
28plot(xthM(6,:)')
29legend('Simulated \upsilon','Estimated \upsilon using EKF ', 'Estimated \upsilon using EKF-MPF ');
30xlabel('time index')
31%set(gca,'XLim',[2300,3000]);
32
Note: See TracBrowser for help on using the browser.