root/applications/pmsm/Barcelona/Mz_mx.m @ 1436

Revision 706, 0.5 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
1if 0
2    M=pmsm_estim_mex('Mz_mx.cfg');
3    save Mz M
4else
5    load Mz
6end
7
8time = 0.000125*[0:size(M.crbzth,1)-1];
9
10figure(1)
11subplot(2,1,1);
12plot(time,M.xom);
13grid on
14title('Simulated rotor speed profile');
15
16subplot(2,1,2);
17hold off
18plot(time,M.crbzth);
19hold on
20plot(time,M.crbth,'r--');
21grid on
22legend('EKF TL','EKF')
23title('Cramer-Rao bounds on rotor position')
24
25figure(2)
26hold off
27plot(time,M.crbzom);
28hold on
29plot(time,M.crbom,'r');
30
31ind=100:size(M.crbth,1)-100;
32[min(M.crbom(ind)), max(M.crbom(ind))]
33[min(M.crbzom(ind)), max(M.crbzom(ind))]
34
Note: See TracBrowser for help on using the browser.