root/applications/dual/SIDP/jednoduchy system/get_next.m @ 1093

Revision 862, 336 bytes (checked in by zimamiro, 15 years ago)
Line 
1function next=get_next(state,u,system)
2%OK
3%prostor hyperstavu - kazdy bod ma souradnice (y, b, P)
4
5%realization
6    next(1)=state(1)+system.b*u+system.sigma*randn;
7   
8   
9%kalman
10    K=u*state(3)/(state(3)*u^2+system.sigma^2);
11    next(2)=state(2)+K*(next(1)-state(1)-state(2)*u);
12    next(3)=(1-K*u)*state(3);
13   
14end
Note: See TracBrowser for help on using the browser.