课程设计Sa(t)函数程序波形图.doc

上传人:xin****828 文档编号:6694941 上传时间:2020-03-02 格式:DOC 页数:6 大小:191.50KB
返回 下载 相关 举报
课程设计Sa(t)函数程序波形图.doc_第1页
第1页 / 共6页
课程设计Sa(t)函数程序波形图.doc_第2页
第2页 / 共6页
课程设计Sa(t)函数程序波形图.doc_第3页
第3页 / 共6页
点击查看更多>>
资源描述
程序:连续信号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; 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(fa(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; 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); grid; 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: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(欠采样信号与原信号的误差)
展开阅读全文
相关资源
相关搜索

当前位置:首页 > 图纸专区 > 中学资料


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!