课程设计报告Sa(t)函数程序波形图

上传人:yh****1 文档编号:125793365 上传时间:2020-03-20 格式:DOC 页数:6 大小:211KB
返回 下载 相关 举报
课程设计报告Sa(t)函数程序波形图_第1页
第1页 / 共6页
课程设计报告Sa(t)函数程序波形图_第2页
第2页 / 共6页
课程设计报告Sa(t)函数程序波形图_第3页
第3页 / 共6页
课程设计报告Sa(t)函数程序波形图_第4页
第4页 / 共6页
课程设计报告Sa(t)函数程序波形图_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《课程设计报告Sa(t)函数程序波形图》由会员分享,可在线阅读,更多相关《课程设计报告Sa(t)函数程序波形图(6页珍藏版)》请在金锄头文库上搜索。

1、 .程序:连续信号Sa(t):t=-20:0.5:20; f=sinc(t/pi); plot(t,f); xlabel(t);ylabel(x(t);title(连续信号sa(t)=sinc(t/pi)波形); grid;Sa(t)频谱:t=-20:0.5:20;f=sinc(t/pi); N=1000;k=-N:N;w1=10; w=k*w1/N; F=f*exp(-j*t*w)*0.5; plot(w,F); xlabel(x); ylabel(x(w); title( sa(t)=sinc(t/pi)信号的频谱图)Sa(t)的临界抽样及重构:wm=1; wc=wm; Ts=pi/wm;

2、 ws=2*pi/Ts; n=-100:100; nTs=n*Ts f=sinc(nTs/pi); Dt=0.005;t=-20:Dt:20; fa=f*Ts*wc/pi*sinc(wc/pi)*(ones(length(nTs),1)*t-nTs*ones(1,length(t); t1=-20:0.5:20;f1=sinc(t1/pi);subplot(211); stem(t1,f1);xlabel(kTs);ylabel(f(kTs); title(sa(t)=sinc(t/pi)的临界采样信号); subplot(212); plot(t,fa);xlabel(t);ylabel(f

3、a(t);title(由sa(t)=sinc(t/pi)的临界采样信号重构sa(t);grid;Sa(t)的过抽样及重构: wm=1; wc=1.1*wm; Ts=0.7*pi/wm; ws=2*pi/Ts; n=-100:100; nTs=n*Ts f=sinc(nTs/pi); Dt=0.005; t=-10:Dt:10; fa=f*Ts*wc/pi*sinc(wc/pi)*(ones(length(nTs),1)*t-nTs*ones(1,length(t); error=abs(fa-sinc(t/pi); t1=-10:0.5:10; f1=sinc(t1/pi); m=-20:20

4、; N=41; Xw=abs(fft(f,N); subplot(2,2,1); plot(m,Xw); axis(-20 20 1.1*min(Xw) 1.1*max(Xw); xlabel(w); ylabel(|Xw|); title(抽样后频谱波形图); subplot(2,2,2); stem(t1,f1); xlabel(kTs); ylabel(f(kTs); title(sa(t)=sinc(t/pi)的采样信号); subplot(2,2,3); plot(t,fa) xlabel(t); ylabel(fa(t); title(由sa(t)过采样信号重构sa(t); gri

5、d; subplot(2,2,4); plot(t,error); xlabel(t); ylabel(error(t); title(过采样信号与原信号的误差)Sa(t)的欠抽样及重构: wm=1; wc=wm; Ts=1.5*pi/wm; ws=2*pi/Ts; n=-100:100; nTs=n*Ts f=sinc(nTs/pi); Dt=0.005; t=-10:Dt:10; fa=f*Ts*wc/pi*sinc(wc/pi)*(ones(length(nTs),1)*t-nTs*ones(1,length(t); error=abs(fa-sinc(t/pi); t1=-10:0.5

6、:10; f1=sinc(t1/pi); m=-20:20; N=41; Xw=abs(fft(f,N); subplot(2,2,1); plot(m,Xw); axis(-20 20 min(Xw) max(Xw); xlabel(w); ylabel(|Xw|); title(抽样后频谱波形图); subplot(2,2,2); stem(t1,f1); xlabel(kTs); ylabel(f(kTs); title(sa(t)=sinc(t/pi)的采样信号); subplot(2,2,3); plot(t,fa) xlabel(t); ylabel(fa(t); title(由sa(t)欠采样信号重构sa(t); grid; subplot(2,2,4); plot(t,error); xlabel(t); ylabel(error(t); title(欠采样信号与原信号的误差)欢迎您的光临,word文档下载后可以修改编辑。双击可以删除页眉页脚。谢谢!单纯的课本内容,并不能满足学生的需要,通过补充,达到内容的完善 教育之通病是教用脑的人不用手,不教用手的人用脑,所以一无所能。教育革命的对策是手脑联盟,结果是手与脑的力量都可以大到不可思议。范文.

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 设计及方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号