数字信号处理matlab实验程序

数字信号处理matlab实验程序

ID:26046016

大小:76.00 KB

页数:15页

时间:2018-11-24

数字信号处理matlab实验程序_第1页
数字信号处理matlab实验程序_第2页
数字信号处理matlab实验程序_第3页
数字信号处理matlab实验程序_第4页
数字信号处理matlab实验程序_第5页
资源描述:

《数字信号处理matlab实验程序》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、2.1clccloseall;n=0:15;p=8;q=2;x=exp(-(n-p).^2/q);figure(1);subplot(3,1,1);stem(n,x);title('exp(-(n-p)^2/q),p=8,q=2');xk1=fft(x,16);q=4;x=exp(-(n-p).^2/q);subplot(3,1,2);xk2=fft(x,16);stem(n,x);title('exp(-(n-p)^2/q),p=8,q=4');q=8;x=exp(-(n-p).^2/q);xk3=

2、fft(x,16);subplot(3,1,3);stem(n,x);title('exp(-(n-p)^2/q),p=8,q=8');%时域特性figure(2);subplot(3,1,1);stem(n,abs(xk1));title('exp(-(n-p)^2/q),p=8,q=2');subplot(3,1,2);stem(n,abs(xk2));title('exp(-(n-p)^2/q),p=8,q=4');subplot(3,1,3);stem(n,abs(xk3));title('e

3、xp(-(n-p)^2/q),p=8,q=8');%频域特性%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%p=8;q=8;figure(3);subplot(3,1,1);stem(n,x);title('exp(-(n-p)^2/q),p=8,q=8');xk1=fft(x,16);p=13;x=exp(-(n-p).^2/q);subplot(3,1,2);xk2=fft(x,16);stem(n,x);title('exp(-(n-p)^2/q),p=13,q=8

4、');p=14;x=exp(-(n-p).^2/q);xk3=fft(x,16);subplot(3,1,3);stem(n,x);title('exp(-(n-p)^2/q),p=14,q=8');%时域特性figure(4);subplot(3,1,1);stem(n,abs(xk1));title('exp(-(n-p)^2/q),p=8,q=8');subplot(3,1,2);stem(n,abs(xk2));title('exp(-(n-p)^2/q),p=13,q=8');subplot

5、(3,1,3);stem(n,abs(xk3));title('exp(-(n-p)^2/q),p=14,q=8');%频域特性2.2clcclosealln=0:15;f=0.0625;a=0.1;xb1=exp(-a*n).*sin(2*pi*f*n);xk1=fft(xb1,16);f=0.4375;xb2=exp(-a*n).*sin(2*pi*f*n);xk2=fft(xb2,16);f=0.5625;xb3=exp(-a*n).*sin(2*pi*f*n);xk3=fft(xb3,16);

6、figure(1);subplot(3,1,1);stem(n,xb1);title('f=0.0625');subplot(3,1,2);stem(n,xb2);title('f=0.4375');subplot(3,1,3);stem(n,xb3);title('f=0.5625');figure(2);subplot(3,1,1);stem(n,abs(xk1));title('f=0.0625');subplot(3,1,2);stem(n,abs(xk2));title('f=0.4375'

7、);subplot(3,1,3);stem(n,abs(xk3));title('f=0.5625');2.3clccloseall;N=8;n=0:N-1;xc=0:7;xd=0:7;form=0:7;if(0<=m&m<=3)xc(m+1)=m;xd(m+1)=4-m;elseif(4<=m&m<=7)xc(m+1)=8-m;xd(m+1)=m-4;endendfigure(1);subplot(2,1,1);stem(n,xc);title('三角波序列');subplot(2,1,2);ste

8、m(n,xd);title('反三角波序列');xck=fft(xc,N);xdk=fft(xd,N);figure(2);subplot(2,1,1);stem(n,abs(xck));title('三角波序列8点fft');subplot(2,1,2);stem(n,abs(xdk));title('反三角波序列8点fft');figure(3);xck1=fft(xc,32);xdk1=fft(xd,32);subplot(2,1,1);stem(

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。