root/applications/dual/SIDP/bakalarka/SIDPS/matlab/motor2/get_next.m @ 1351

Revision 1351, 303 bytes (checked in by zimamiro, 13 years ago)
Line 
1function [x1 y]=get_next(system,x,u,seed)
2A=[system.a 0 system.b*sin(x(4)) 0
3   0 system.a -system.b*cos(x(4)) 0
4   -system.e*sin(x(4)) system.e*cos(x(4)) system.d 0
5   0 0 system.deltat 1];
6x1=A*x+ system.B*u+sqrt(diag(system.Q)).*seed(1:4);
7y=x1([1 2])+sqrt(diag(system.R)).*seed([5 6]);
8
9end
Note: See TracBrowser for help on using the browser.