⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p320bsinc.m

📁 P3.20. Consider an analog signal xa (t) = sin (2πt), 0 ≤t≤ 1. It is sampled at Ts = 0.01, 0.05, and
💻 M
字号:
clear all;clc;
Ts1=0.01;Fs=1/Ts1;
n=0:1:100;
nTs1=n*Ts1;
x=sin(2*pi*nTs1);
Dt=0.001;t=0:Dt:1;
xa=x*sinc(Fs*(ones(length(n),1)*t-nTs1'*ones(1,length(t))));
subplot(3,1,1)
plot(t,xa)
title('Reconstruct Signal using `sinc` interpolation, Ts=0.01 Sec');
xlabel('Time (t)');
ylabel('y(t)');


Ts2=0.05;Fs=1/Ts2;
n=0:1:20;
nTs2=n*Ts2;
x=sin(2*pi*nTs2);
Dt=0.001;t=0:Dt:1;
xa=x*sinc(Fs*(ones(length(n),1)*t-nTs2'*ones(1,length(t))));
subplot(3,1,2)
plot(t,xa)
title('Reconstruct Signal using `sinc` interpolation, Ts=0.05 Sec');
xlabel('Time (t)');
ylabel('y(t)');


Ts3=0.1;Fs=1/Ts3;
n=0:1:10;
nTs3=n*Ts3;
x=sin(2*pi*nTs3);
Dt=0.001;t=0:Dt:1;
xa=x*sinc(Fs*(ones(length(n),1)*t-nTs3'*ones(1,length(t))));
subplot(3,1,3)
plot(t,xa)
title('Reconstruct Signal using `sinc` interpolation, Ts=0.1 Sec');
xlabel('Time (t)');
ylabel('y(t)');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -