- adjusted plot colors
- clean up git-svn-id: http://moon:8086/svn/matlab/trunk@125 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
+2
-5
@@ -28,7 +28,6 @@ function kalman_eval(varargin)
|
|||||||
|
|
||||||
% Parse parameters
|
% Parse parameters
|
||||||
names = fieldnames(params);
|
names = fieldnames(params);
|
||||||
varargin
|
|
||||||
for k=1:nargin-1,
|
for k=1:nargin-1,
|
||||||
for n=1:length(names),
|
for n=1:length(names),
|
||||||
if strcmpi(varargin{k}, names{n})
|
if strcmpi(varargin{k}, names{n})
|
||||||
@@ -127,14 +126,12 @@ function kalman_eval(varargin)
|
|||||||
_y = [_y xp];
|
_y = [_y xp];
|
||||||
|
|
||||||
end
|
end
|
||||||
X
|
|
||||||
xp
|
|
||||||
|
|
||||||
t = (1:length(_x)) /60*dt;
|
t = (1:length(_x)) /60*dt;
|
||||||
subplot(2,1,1)
|
subplot(2,1,1)
|
||||||
plot(t, _x(1,:), t, _y(1,:), '-rx'); legend('x', 'x_p'); grid;
|
plot(t, _x(1,:), 'bx', t, _y(1,:), '-r'); legend('x', 'x_p'); grid;
|
||||||
subplot(2,1,2)
|
subplot(2,1,2)
|
||||||
plot(t, _x(2,:), t, _y(2,:)*dt*60, '-rx'); legend('xd', 'xd_p'); grid;
|
plot(t, _x(2,:), 'bx', t, _y(2,:), '-r'); legend('xd', 'xd_p'); grid;
|
||||||
|
|
||||||
|
|
||||||
function print_parameters(params)
|
function print_parameters(params)
|
||||||
|
|||||||
Reference in New Issue
Block a user