基于多项滤波的数字正交变换MATLAB仿真程序

原创 2015年07月07日 10:35:44
function filter_emu( Num )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
%num_size = sizeof(Num);
%利用多项滤波器的分支特性获得两个有半个采样点时延的低通滤波器系数</span>
filt1 = zeros(1,8);
filt2 = zeros(1,8);
for m = 1:64
    if(mod(m,8) == 4)
        filt1(i) = Num(m);
    end
    if(mod(m,8) == 0)
        filt2(i) = Num(m);
        i = i + 1;
    end
end
%------生成窄带信号,中频150MHz,带宽不大于20MHz
%------仿真信号x(t)=a(t)*cos[2*pi*f0*t+phi(t)]
f0 = 1.5e8;     %中心频率
fs = 2e8;       %采样频率
N = 1600;       %取的样本点数
n = 0:N-1;      %取的样本序列
t = n/fs;       %获得以1/fs为时间间隔的采样序列
%a = 1+cos(2*pi*1000*t);      
                %获取a(t)的采样点
phi = 2*pi*2e6;
                %获取phi
xt = cos(2*pi*f0*t+phi*t);
                %生成窄带信号并获取其采样点
%------进行2倍抽取并混频
nt = 1:N/20;
xi = xt(2*nt).*((-1).^nt);  %获取同相分量
xq = xt(2*nt-1).*((-1).^nt);%获取正交分量

%------打印同相分量与正交分量
figure(1);
plot(nt,xi,'r');
hold on;
plot(nt,xq,'g');
grid on;
%------滤波
x1 = filter(filt1,1,xi);
x2 = filter(filt2,1,xq);
%------打印恢复后的同相正交分量
figure(2);
plot(nt,x1,'r');
hold on;
plot(nt,x2,'g');
grid on;

end
注:Num为生成的63阶FIR滤波器系数存放的数组,通过fdatool工具得到。

DriverStudio开发PCI设备DMA数据传输

DriverWizard向导可以创建基本的wDM驱动程序框架,包括总线类型,地址空间,中断源,DMA资源,以及IOCTL(i/o控制代码)的定义等等。详细情况可参看DriverStudio的帮助文档,...
  • mao0514
  • mao0514
  • 2016年07月05日 11:03
  • 2299

应用程序与驱动通信与弹窗

驱动程序是为设备的硬件层编程服务的,需要提供和应用程序进行通信的能力,达到应用程序控制设备的目的。 驱动程序和客户应用程序经常需要进行数据交换,驱动程序和客户应用程序不在同一个地址空间,操作系统必须...

《卡尔曼滤波原理及应用-MATLAB仿真》程序-4.2

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 扩展Kalman滤波在目标跟踪中的应用 % ...

《卡尔曼滤波原理及应用-MATLAB仿真》程序-3.4

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 石油地震勘测输入白噪声估值器算法仿真程序 % ...

《卡尔曼滤波原理及应用-MATLAB仿真》程序-5.2UKF

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 功能说明: UKF在目标跟踪中的应用 % ...

《卡尔曼滤波原理及应用-MATLAB仿真》程序-5.3UKF

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 程序说明:对比UKF与EKF在非线性系统中应用...

《卡尔曼滤波原理及应用-MATLAB仿真》程序-3.1

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 程序说明:Kalman滤波用于温度测量的实例 ...

《卡尔曼滤波原理及应用-MATLAB仿真》程序-5.1UKF

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 无迹Kalman滤波在目标跟踪中的应用 %...

卡尔曼滤波程序及MATLAB仿真

  • 2015年12月22日 12:44
  • 56KB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:基于多项滤波的数字正交变换MATLAB仿真程序
举报原因:
原因补充:

(最多只允许输入30个字)