在matlab中理解采样定理

奈奎斯特采样定理

众所周知一句话,采样频率大于等于信号最高频率的两倍才能使采得的信号不失真,也就输专业术语,在频域发生混叠,不便于后续的操作。


A = 1;
f = 2 ;
f_sample = 4;
t = 0 : 1/f_sample : 1;
y = A*sin(2*pi*f*t);

subplot(3,2,1);
plot(t,y);
title('4');
xlabel('t');
ylabel('A*sin(2*pi*f*t)');
grid on;

f_sample = 6;
t = 0 : 1/f_sample : 1;
y = A*sin(2*pi*f*t);

subplot(3,2,2);
plot(t,y);
title('6');
xlabel('t');
ylabel('A*sin(2*pi*f*t)');
grid on;

f_sample = 10;
t = 0 : 1/f_sample : 1;
y = A*sin(2*pi*f*t);

subplot(3,2,3);
plot(t,y);
title('8');
xlabel('t');
ylabel('A*sin(2*pi*f*t)');
grid on;

f_sample = 20;
t = 0 : 1/f_sample : 1;
y = A*sin(2*pi*f*t);


subplot(3,2,4);
plot(t,y);
xlabel('t');
title('20');
ylabel('A*sin(2*pi*f*t)');
grid on;

f_sample = 30;
t = 0 : 1/f_sample : 1;
y = A*sin(2*pi*f*t);

subplot(3,2,5);
plot(t,y);
xlabel('t');
title('30');
ylabel('A*sin(2*pi*f*t)');
grid on;

f_sample = 40;
t = 0 : 1/f_sample : 1;
y = A*sin(2*pi*f*t);

subplot(3,2,6);
plot(t,y);
title('40');
xlabel('t');
ylabel('A*sin(2*pi*f*t)');
grid on;

图如下在matlab中理解采样定理_第1张图片

你可能感兴趣的:(matlab学习--日常,通信原理,matlab,数字通信)