声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 755|回复: 0

[综合讨论] 请帮我看一个程序,看这个是什么意思,关于卡尔曼滤波的

[复制链接]
发表于 2007-5-8 10:24 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
% modeling data

% sample number N=200 points

% sample time T=0.1s



t=0:0.1:20-0.1;

T=0.1;
% sample time

v=0.5;
% initial velocity

y=ones(1,200);

y(1)=0;

for n=2:200;


y(n)=y(n-1)+v*T;

end

figure(1);

plot(t,y,'-');

axis([0 20 0 20]);

xlabel('time');

ylabel('yp position');

title('the initial track of movement');



% add white gauss noise

a=0.5*randn(1,200);

s=y+a;
%data+noise

figure(2);

plot(t,s,'+');

axis([0 20 0 20]);

xlabel('time');

ylabel('yp position');

title('the track of movement with noise');



save initial_track
s

谢谢

[ 本帖最后由 xinyuxf 于 2007-5-8 10:29 编辑 ]

本帖被以下淘专辑推荐:

回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-20 22:08 , Processed in 0.079363 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表