root/applications/dual/SIDP/get_next.m @ 743

Revision 743, 336 bytes (checked in by zimamiro, 14 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.