root/applications/pmsm/simulator_zdenek/ekf_example/data/kresli_odhad.m @ 1439

Revision 1439, 0.9 kB (checked in by smidl, 12 years ago)

Funkcni 1D Kalman

Line 
1%load graf1.txt -ascii
2load graf2.txt -ascii
3
4% t, Isx, Isy, Isd, Isdw, Isq, Isqw, M, Fs, poloha, rychlost, rychlost_w,
5% Urm, Urm_max, beta, zbeta, Uc
6
7ind = 1:size(graf1,1);
8
9% t, isx,isy, usx usy fme rychlost
10figure
11plot(graf1(ind,1),graf1(ind,2))     % Isx
12hold on
13plot(graf1(ind,1),graf2(ind,3),'r') % compare with g2
14legend('Isx','Isy');
15
16figure
17plot(graf1(ind,1),graf2(ind,4))     % Isx
18hold on
19plot(graf1(ind,1),graf2(ind,5),'r') % compare with g2
20legend('Usx','Usy');
21
22figure
23plot(graf1(ind,1),graf1(ind,25)/2/pi)     % fme_ekf
24hold on
25plot(graf1(ind,1),graf1(ind,11)/(2*pi),'r')     % fme skutecna
26plot(graf1(ind,1),graf2(ind,6)/(2*pi),'g')     % fme MPF
27legend('fme ekf','fme', 'fme mpf');
28
29figure
30plot(graf1(ind,1),graf1(ind,26))     % theta_elektricka_ekf
31hold on
32plot(graf1(ind,1),graf1(ind,10),'r')     % Poloha elektricka skutecna
33plot(graf1(ind,1),graf2(ind,7),'g')     % theta_elektricka_mpf
34legend('Theta ekf','Theta real', 'Theta MPF');
35
Note: See TracBrowser for help on using the browser.