收藏 分销(赏)

课程设计Sat函数程序波形图.doc

上传人:精**** 文档编号:2935827 上传时间:2024-06-11 格式:DOC 页数:10 大小:194KB
下载 相关 举报
课程设计Sat函数程序波形图.doc_第1页
第1页 / 共10页
课程设计Sat函数程序波形图.doc_第2页
第2页 / 共10页
课程设计Sat函数程序波形图.doc_第3页
第3页 / 共10页
课程设计Sat函数程序波形图.doc_第4页
第4页 / 共10页
课程设计Sat函数程序波形图.doc_第5页
第5页 / 共10页
点击查看更多>>
资源描述

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; w

2、s=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(

3、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); grid;

5、 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:1

6、0; 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(欠采样信号与原信号的误差)

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 学术论文 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服