root/applications/dual/SIDP/SIDPS/motor_sidps/get_next.m
@
1327
Revision 1249, 303 bytes (checked in by zimamiro, 14 years ago) |
---|
Line | |
---|---|
1 | function [x1 y]=get_next(system,x,u,seed) |
2 | A=[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]; |
6 | x1=A*x+ system.B*u+sqrt(diag(system.Q)).*seed(1:4); |
7 | y=x1([1 2])+sqrt(diag(system.R)).*seed([5 6]); |
8 | |
9 | end |
Note: See TracBrowser
for help on using the browser.