- fixed ys calculation
git-svn-id: http://moon:8086/svn/matlab/trunk@121 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
+3
-3
@@ -103,13 +103,13 @@ else
|
|||||||
% -----------------------
|
% -----------------------
|
||||||
%y = sin(2*pi*i/200)
|
%y = sin(2*pi*i/200)
|
||||||
%ys = cos(2*pi*i/200)
|
%ys = cos(2*pi*i/200)
|
||||||
ys = (Y(1) - y)/dt;
|
dy = dy + 0.00;
|
||||||
y = y + dy;
|
y = y + dy;
|
||||||
dy = dy + 0.0
|
ys = (y - Y(1))/dt;
|
||||||
% -----------------------
|
% -----------------------
|
||||||
|
|
||||||
Z = variance*randn(size(Z))/sqrt(12);
|
Z = variance*randn(size(Z))/sqrt(12);
|
||||||
Y = C*[y ys]' + Z;
|
Y = C*[y ys]' + Z;
|
||||||
|
|
||||||
% Update process matrix P and state matrix X
|
% Update process matrix P and state matrix X
|
||||||
I = eye(length(K));
|
I = eye(length(K));
|
||||||
|
|||||||
Reference in New Issue
Block a user