10.7MHz的FM中频信号的AD带通采样的MATLAB
时间: 2024-05-19 14:15:40 浏览: 18
代码如下:
% 10.7MHz FM IF signal sampling
fs = 22.1e6; % Sampling frequency
fc = 10.7e6; % Center frequency
bw = 200e3; % Bandwidth of signal
n = 1000; % Number of samples
t = (0:n-1)/fs; % Time vector
x = cos(2*pi*fc*t + 2*pi*bw*cos(2*pi*10e3*t)); % FM IF signal
figure;
plot(t*1e6,x);
xlabel('Time (us)');
ylabel('Amplitude');
title('FM IF signal');
% AD bandpass sampling
f0 = fc-bw/2; % Lower frequency of signal
fn = fc+bw/2; % Upper frequency of signal
f1 = fs/n; % Sampling frequency
m = -n/2:n/2-1; % Sample index vector
h = 2*f1*sinc(2*f1*m); % Ideal lowpass filter
f = m*f1; % Frequency vector
H = fftshift(fft(h)); % Frequency response of filter
X = fftshift(fft(x)); % Frequency response of signal
Y = X.*H; % Frequency response of filtered signal
y = real(ifft(ifftshift(Y))); % Filtered signal
figure;
plot(f/1e6,abs(H));
xlabel('Frequency (MHz)');
ylabel('Magnitude');
title('Frequency response of lowpass filter');
figure;
plot(f/1e6,abs(X));
xlabel('Frequency (MHz)');
ylabel('Magnitude');
title('Frequency response of signal');
figure;
plot(f/1e6,abs(Y));
xlabel('Frequency (MHz)');
ylabel('Magnitude');
title('Frequency response of filtered signal');
figure;
plot(t*1e6,y);
xlabel('Time (us)');
ylabel('Amplitude');
title('Filtered signal');
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)