请matlab高手解决kalman问题A=[0.49,0.298,0.412;0.401,-0.391,0.391;-0.992,0.401,0.296];B=zeros(3.3);G=eye(3,3);C=[0,1,0];D=[0,0,0];H=zeros(1,3);X(:,1)=[10.9,8.481,-4.3]';guji=[20.1,21.3,20.7]';for i=2:30 W=randn(3,1); V=randn(1,1); X(:,

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 09:15:17
请matlab高手解决kalman问题A=[0.49,0.298,0.412;0.401,-0.391,0.391;-0.992,0.401,0.296];B=zeros(3.3);G=eye(3,3

请matlab高手解决kalman问题A=[0.49,0.298,0.412;0.401,-0.391,0.391;-0.992,0.401,0.296];B=zeros(3.3);G=eye(3,3);C=[0,1,0];D=[0,0,0];H=zeros(1,3);X(:,1)=[10.9,8.481,-4.3]';guji=[20.1,21.3,20.7]';for i=2:30 W=randn(3,1); V=randn(1,1); X(:,
请matlab高手解决kalman问题
A=[0.49,0.298,0.412;0.401,-0.391,0.391;-0.992,0.401,0.296];
B=zeros(3.3);
G=eye(3,3);
C=[0,1,0];
D=[0,0,0];
H=zeros(1,3);
X(:,1)=[10.9,8.481,-4.3]';
guji=[20.1,21.3,20.7]';
for i=2:30
W=randn(3,1);
V=randn(1,1);
X(:,i)=A*X(:,i-1);
X1(:,i)=X(:,i)+W;
On=eye(2,2);
Rn=1;
Nn=0;
Z0(:,i)=C*X1(:,i)+V;
sys=ss(A,[B,G],C,[D,H],-1);
[kest,L,P,M,Z]=kalman(sys,On,Rn,Nn);
guji(:,i)=A*guji(:,i-1)+L*A*guji(:,i-1);
end
subplot(2,2,1);
plot(x(1,:))
hold on
plot(guji(1,:),':m')
hold off
legend('real of X1','estimate of X1')
grid
subplot(2,2,2)
hold on
plot(guji(2,:),':m')
hold off
legend('real of X2','estimate of X2')
grid
subplot(2,2,3:4)
plot(X(3,:))
hold on
plot(guji(3,:),':m')
hold off
legend('real of X1','estimate of X1')
grid
Warning: Size vector should be a row vector with integer elements.
不胜感激!

请matlab高手解决kalman问题A=[0.49,0.298,0.412;0.401,-0.391,0.391;-0.992,0.401,0.296];B=zeros(3.3);G=eye(3,3);C=[0,1,0];D=[0,0,0];H=zeros(1,3);X(:,1)=[10.9,8.481,-4.3]';guji=[20.1,21.3,20.7]';for i=2:30 W=randn(3,1); V=randn(1,1); X(:,
A=[0.49,0.298,0.412;0.401,-0.391,0.391;-0.992,0.401,0.296];
B=zeros(3,3);G=eye(3,3);C=[0,1,0];D=[0,0,0];
H=zeros(1,3);X(:,1)=[10.9,8.481,-4.3]';
guji=zeros(3,30);
guji(:,1)=[20.1,21.3,20.7]';
for i=2:30
W=randn(3,1);
V=randn(1,1);
X(:,i)=A*X(:,i-1);
X1(:,i)=X(:,i)+W;
On=eye(2,2); Rn=1;
Nn=0;
Z0(:,i)=C*X1(:,i)+V;
sys=ss(A,[B,G],C,[D,H],-1);
[kest,L,P,M,Z]=kalman(sys,On,Rn,Nn);
guji(:,i)=A*guji(:,i-1)+L'*A*guji(:,i-1);
end
subplot(2,2,1);plot(X1(1,:))
hold on
plot(guji(1,:),':m')
hold off
legend('real of X1','estimate of X1')
grid
subplot(2,2,2)
hold on
plot(guji(2,:),':m')
hold off
legend('real of X2','estimate of X2')
grid
subplot(2,2,3:4)
plot(X(3,:))
hold on
plot(guji(3,:),':m')
hold off
legend('real of X1','estimate of X1')
grid
按上面语句试试

请matlab高手解决kalman问题A=[0.49,0.298,0.412;0.401,-0.391,0.391;-0.992,0.401,0.296];B=zeros(3.3);G=eye(3,3);C=[0,1,0];D=[0,0,0];H=zeros(1,3);X(:,1)=[10.9,8.481,-4.3]';guji=[20.1,21.3,20.7]';for i=2:30 W=randn(3,1); V=randn(1,1); X(:, 求高手解决下面有关matlab问题 Matlab的问题:这是什么意思啊?我没有定义crtbp这个变量么?如何解决呢?请高手指点!感谢! matlab解决微分方程问题 matlab解决符号方程问题刚学MATLAB没几天,下面这个符号方程问题解不了,请高手赐教!ff=sym('m*sin(a)-b*(p*t-c)*sin(t)')t=solve(ff,t)m,a,b,p,c都是已知量,想求出t的表达式出来,可运行结果却为:? Error using ==> 牛吃草问题如何解决?请高手分析 求matlab高手帮我解决一个整数线性规划问题,急! 求会Matlab的高手朋友帮忙,有道难题需解决,问题如截图所示 怎样用matlab解决微积分问题? 请高手帮忙解决 solidworks剖切线问题:请高手解决如何去掉A-A中的直线,图中加亮的线 matlab中次方问题!A=10 n=1000 w=2 θ=90° 哪个高手解决一下啊!要matlab生成的图形!实在是搞不定了! 如何求MATLAB 极值问题请帮忙解决 下这个问题,请写出具体步骤. 请高手用matlab解决一个概率问题一个质点在零时刻从0点出发,下一时刻,他向右移动的概率p,向左移动的概率为1-p,每次移动是独立的,0 Matlab问题,错误Incomplete or misformed expression or statement.while (abs(costminold2-costminold1);100)&(abs(costminold1-costmin);100)&(increase;500)出现如题的错误,请高手解决!Incomplete or misformed expression or statement.别人的 怎样运用matlab解决最优化问题? 用matlab解决一道数学问题 matlab中三次样条插值能解决什么问题?