Changeset 1191
- Timestamp:
- 09/17/10 14:35:05 (14 years ago)
- Files:
-
- 2 added
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/stresssuite/kalman_stress.m
r1190 r1191 47 47 oll=0; 48 48 49 Mu = zeros(2,N); 50 Mu_oo = zeros(2,N); 51 49 52 tic; 50 53 for t=2:N … … 68 71 %keyboard 69 72 73 %%%%%%%% OBJECTs in MATLAB %%%%% 74 addpath ../../../applications/bdmtoolbox/mex/mex_classes 75 76 oKAL=mexKalman; 77 oKAL.A = A; 78 oKAL.B = B; 79 oKAL.C = C; 80 oKAL.D = D; 81 oKAL.Q = Q; 82 oKAL.R = R; 83 oKAL=oKAL.validate; 84 oKAL.apost_pdf.mu = mu0; 85 oKAL.apost_pdf.R = P0; 86 87 tic; 88 for t=2:N 89 oKAL=oKAL.bayes(y(t),u(t)); 90 Mu_oo(1:2,t) = oKAL.apost_pdf.mu; 91 end 92 exec_matlab_oo=toc 93 70 94 !./stresssuite kalman_stress 71 95 itload('kalman_stress_res.it'); … … 75 99 hold on 76 100 plot([Mu]','--'); % shift the predldmatictions 101 plot([Mu_oo]',':'); % shift the predldmatictions 77 102 plot(xth2','+'); 78 103 plot(xthE','o');