好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

MAtlab傅里叶变换实验报告.doc

9页
  • 卖家[上传人]:Wo****D
  • 文档编号:184480699
  • 上传时间:2021-06-21
  • 文档格式:DOC
  • 文档大小:21.50KB
  • / 9 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • MAtlab傅里叶变换实验报告班级信工 142学号22姓名何岩实验组别实验日期室温报告日期成绩报告内容:( 目得与要求, 原理, 步骤, 数据, 计算, 小结等) 1、求信号得离散时间傅立叶变换并分析其周期性与对称性; 给定正弦信号 _(t)=2*cos(2*pi_10*t),fs=100HZ,求其DTFTa)代码: f=10;T=1/f;w=-10:0、2:10; t1=0:0、0001:1;t2=0:001:1; n1=-2;n2=8;n0=0;n=n1:001:n2; x5=[n>=0.01]; _1=2*cos(2_f*pi*t1); _2=2_cos(2*f_pi*t2); _3=(e_p(;j).^(t2��_w)); _4=x2__3; subplot(2,2,1);plot(t1,_1); a_is([0 1 1、1_min(_2) 11*max(x2)]); _label(��_(n)��);ylabel(��_(n)"); title('原信号 _1"); xlabel("t");ylabel("_1��); subplot(2,2,3);stem(t2,x2); a_is([0 1 1、1*min(_2) 1。

      1*ma_(_2)]); title(��原信号采样结果 _2'); _label('t��);ylabel('_2"); subplot(2,2,2);stem(n,_5); a_is([0 1 1、1_min(_5) 1.1_ma_(_5)]); _label(��n��);ylabel('_2"); title(��采样函数x2'); subplot(2,2,4);stem(t2,x4); a_is([0 1 ;0、2+11_min(_4) 1、1_ma_(_4)]); _label(��t");ylabel('_4"); title("DTFT结果 _4'); (b)结果: 2、用以下两个有限长序列来验证 DTFT 得线性、卷积与共轭特性; _1(n)=[1 2 3 4 5 6 7 8 9 10 11 12];_2(n)=R 10 (n) (1) 线性:(a)代码: w=linspace(-8,8,10000); nx1=[0:11]; n_2=[0:9]; x1=[1 2 3 4 5 6 7 8 9 10 11 12]; _2=[1 1 1 1 1 1 1 1 1 1]; _3=[_2,zeros(1,(length(_1);length(_2)))]; _4=2*_1+3*_3; X1=_1_e_p(-j*n_1'*w);%频率特性 _3=_3_e_p(-j_nx1'*w);%频率特性 _4=x4_e_p(;j_nx1��_w);%频率特性subplot(5,3,1),stem(n_1,_1),a_is([-1,13,0,15]);title('_1��), ylabel("x(n)��);subplot(5,3,2),stem(n_2,_2),a_is([;1,13,0,5]);title("_2');subplot(5,3,3),stem(n_1,_4),a_is([-1,13,0,26]);title(��_4=2*x1+3*x3");subplot(5,3,4),plot(w,abs(_1)); ylabel('幅度��)subplot(5,3,7),plot(w,angle(X1));ylabel(��相位')subplot(5,3,10),plot(w,real(X1));ylabel(��实部��)subplot(5,3,13),plot(w,imag(_1)); ylabel("虚部��) subplot(5,3,5),plot(w,abs(_3));subplot(5,3,8),plot(w,angle(X3));subplot(5,3,11),plot(w,real(_3)); subplot(5,3,14),plot(w,imag(_3));subplot(5,3,6),plot(w,abs(_4));subplot(5,3,9),plot(w,angle(X4));subplot(5,3,12),plot(w,real(_4)); subplot(5,3,15),plot(w,imag(X4));(b)结果: (2)卷积:(a)代码: n_1=0:11; nx2=0:9; n_3=0:20;w=linspace(-8,8,40); %w=[;8,8]分 10000 份_1=[1 2 3 4 5 6 7 8 9 10 11 12]; _2=[1 1 1 1 1 1 1 1 1 1]; _3=conv(_1,x2);% _1 卷积 _2 x4=_1*e_p(-j*n_1"_w);% _1频率特性 _5=x2_e_p(-j*nx2��*w);% _2 频率特性 _6=_3_e_p(-j*nx3"*w);% _1 卷积 _2频率特性 _7=_4、__5;subplot(2,2,1),stem(n_1,_1),a_is([;1,15,0,15]),title(��_1"); su b plo t (2,2,2), s t em(n_2, x 2 ),a_ i s([;1, 15,0,5]),title(��_2��); subplot(2,1,2),stem(n_3,x3),a_is([;1,25,0,80]);title('_1卷积x2 结果 _3��); figure,subplot(2,2,1),stem(_4,"filled��),title("x1得DTFT 结果x4��);subplot(2,2,2),stem(_5,"filled'),title(��_2得 DTFT结果 _5��);subplot(2,2,3),stem(x6,'filled��),title(��x3得 DTFT 结果 _6��);subplot(2,2,4),stem(_7,"filled'),title('_4 得DTFT 结果x7��);figure,subplot(3,2,1),stem(w,abs(x6)), ylabel("幅度��),title(��_1 卷积 _2 得 DTFT');subplot(4,2,3),stem(w,angle(x6)),ylabel("相位")subplot(4,2,5),stem(w,real(x6)),ylabel("实部��)subplot(4,2,7),stem(w,imag(_6)),ylabel('虚部��)subplot(4,2,2),stem(w,abs(_7)), title(��_1 与 _2 得 DTFT得乘积��);subplot(4,2,4),stem(w,angle(_7));subplot(4,2,6),stem(w,real(x7));subplot(4,2,8),stem(w,imag(_7));(b)结果: (3)共轭:(a)代码: _1n=[1 2 3 4 5 6 7 8 9 10 11 12]; w=;10:10; N1=length(x1n);n1=0:N1;1; _1=real(_1n); _2=imag(x1n); _2n=x1;j*_2;X1=_2n_(e_p(-j)、^(n1'*w)); _2=_1n_(e_p(j)、^(n1��*w)); _3=real(_2); _4=imag(X2); X2=_3;j__4; figure,subplot(211);stem(w,X1,".��);title("_1n共轭得 DTFT��); subplot(212);stem(w,X2,"、��);title("x1n 得 DTFT 取共轭且反折"); (b)结果:3。

      求 LTI 系统得频率响应 给定系统 H(Z)=B(Z)/A(Z),A=[098777 -031183 0、0256] B=[0.98997 0.989 098997],求系统得幅频响应与相频响应、(要求使用filter(B,A,delta;(n))求解a)结果: A=[0、98777 -031183 0、0256]; B=[098997 0、989 0、98997]; C=[1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] y=filter(B,A,C); subplot(2,2,1);stem(y,'、��);title(��原始序列"); mag=abs(y); ph=angle(y); ph=ph_180/pi; subplot(2,2,2);stem(mag,"、');title('幅频特性'); _label('时间信号n");ylabel('信号幅度'); subplot(2,2,3);stem(ph,"、��);title("相频特性"); _label("时间信号 n');ylabel("信号相位"); (b)结果:4.采样与频谱混叠 给定信号x(t)=100_exp(-100_t)*cos(2_pi*500*t),求该信号得频谱;当采样频率分别为 fs1=20__0HZ,fs2=1000HZ;fs3=500HZ; fs4=20__HZ,时输出序列得 DTFT。

      a)代码: _=100*e_p(-100_t)、*cos(2*pi*500*t); t=;2:0、1:2;w=-10:01:10; y=x_(e_p(-j)、^(t��_w)); subplot(2,1,1),plot(t,x); subplot(2,1,2),plot(w,y);title(��原始信号得频谱'); figure,fs1=20__0;Ts1=1/fs1;n1=-2:Ts1:2;fs2=1000;Ts2=1/fs2;n2=-2:Ts2:2;fs3=500;Ts3=1/fs3;n3=-2:Ts3:2;fs4=20__;Ts4=1/fs4;n4=;2:Ts4:2; _1=100*exp(;100*n1)cos(2_pi_500_n1);y1=x1*(exp(-j)^(n1"*w)); subplot(221);plot(w,y1);title("经 20__0Hz 采样后信号得 DTFT"); _2=100e_p(-100_n2)、_cos(2_pi_500*n2);y2=_2*(exp(-j)、^(n2'_w)); subplot(222);plot(w,y2);title(��经 1000Hz采样后信号得 DTFT��); _3=100、*e_p(;100_n3)、*cos(2*pi*500*n3);y3=_3_(e_p(;j)、^(n3"*w)); subplot(223);plot(w,y3);title(��经500Hz 采样后信号得 DTFT"); _4=100.*e_p(;100_n4)。

      *cos(2_pi_500_n4);y4=_4_(e_p(;j)、^(n4��*w)); subplot(224);plot(w,y4);title(��经 200Hz采样后信号得 DTFT'); (b)结果: 收获及感想: DFT针对得就是有限长数字信号得傅立叶变换或傅立叶时频分析问题但 以前得傅立叶变换就是定义在整个时间轴上得,而且一般针对得就是连续信号 ,获得得就是一个连续得频谱离散傅里叶变换(DFT),就是傅里叶变换在时域与频域上都呈现离散得形式,将时域信号得采样变换为在离散时间傅里叶变换(DTFT)频域得采样在形式上,变换两端(时域与频域上)得序列就是有限长得,而实际上这两组序。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.