![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matlab
csdn_gddf102384398
这个作者很懒,什么都没留下…
展开
-
kalman滤波预测速度之只有位置观测量的小汽车匀速直线运动模型
clear all; R=2; N=1000; v=normrnd(0,sqrt(R),[1,N]); k=[0:N-1]; dt=0.1; vel_theory=10;%理论速度 pos_theory=12+k*vel_theory*dt; pos_ob=pos_theory+v; vel_pred=linspace(0,0,N);%预测的速度 pos_pred=linspace(0,0,N); A=[1 dt;0 1]; H=[1 0]; xk=[0 0]'; P=[0.01 0.01;0.01 0.0原创 2020-09-04 17:05:47 · 968 阅读 · 0 评论 -
关于频谱混叠
fs=90; T=1/10; N=100*fs*T; n=1:N; t=n/fs; s=cos(2*pi*10*t+pi/3)+2*cos(2*pi*50*t-pi/6);%T=1/10 F=fftshift(fft(s)); subplot(211); plot(n*fs/N-fs/2,abs(F)/N); xlabel('频率(Hz)'); subplot(212); plot(n*2*pi...原创 2019-11-21 20:35:28 · 3038 阅读 · 0 评论 -
MATLB DFS实验
clear; N=1000; fs=5000; n=0:N-1; xn=1+0.5*sin(30*pi*n/fs)+2*sin(80*pi*n/fs); subplot(2,1,1);%2行1列显示 plot(n,xn); title('f(t)=1+0.5*sin(30*pi*t)+2*sin(80*pi*t)') xlabel('时间(s)'); N=40; fs=200; n=0:N-1;...原创 2019-10-29 16:18:33 · 165 阅读 · 0 评论 -
matlab笔记
x=[1 2 3 4]; y=[0 0 1 1]; 使用plot(x,y);绘图的效果为: 而使用stairs(x,y);绘图的效果为:原创 2019-07-02 15:31:17 · 639 阅读 · 0 评论