www.gusucode.com > MATLAB编程毕业设计 EKF SLAM仿真全部源代码 > add_control_noise.m

    function [Vn,Gn]= add_control_noise(V,G,Q)
%给控制量V、G加入高斯噪声

Vn = V + randn(1)*sqrt(Q(1,1));
Gn = G + randn(1)*sqrt(Q(2,2));

end