时域抽样与频域抽样
1. 在[0,0.1]区间上以50Hz的抽样频率对下列3个信号分别进行抽样
t0= 0:0.0001:0.1;
Fs=50;
x0=cos(2*pi*10*t0);
subplot(3,2,1);
plot(t0,x0);
hold on;
t=0:1/Fs:0.1;
x=cos(2*pi*10*t);
stem(t,x,'r');
hold off;
subplot(3,2,2);
stem(t,x);
x1=cos(2*pi*50*t0);
subplot(3,2,3);
plot(t0,x1);
hold on;
x=cos(2*pi*50*t);
stem(t,x,'r');
hold off;
subplot(3,2,4);
stem(t,x);
x2=cos(2*pi*100*t0);
subplot(3,2,5);
plot(t0,x2);
hold on;
x=cos(2*pi*100*t);
stem(t,x,'r');
subplot(3,2,6);
stem(t,x);
0= 0:0.0001:0.1;
Fs=400;
t=0:1/Fs:0.1;
x1=cos(2*pi*50*t0);
subplot(2,2,1