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

📄 ip_06_03.m

📁 覆盖了全书的信号与线性系统、随机过程、模拟调制、模拟数字转换、基带数字传输、带限信道的数字传输、载波调制的数字传输、信道容量和编码、扩频通信系统以及数字调制方法的SIMULINK仿真的 源代码
💻 M
字号:
% MATLAB script for Illustrative Problem 6.3.
echo on
f_cutoff=2000;				% the desired cutoff frequency
f_stopband=2500;			% the actual stopband frequency
fs=10000;				% the sampling frequency
f1=2*f_cutoff/fs;			% the normalized passband frequency
f2=2*f_stopband/fs;			% the normalized stopband frequency
N=41;					% This number is found by experiment.
F=[0 f1 f2 1];		
M=[1 1 0 0];				% describes the lowpass filter
B=remez(N-1,F,M);			% returns the FIR tap coefficients
% Plotting command follows.
figure(1);
[H,W]=freqz(B);
H_in_dB=20*log10(abs(H));
plot(W/(2*pi),H_in_dB);
figure(2);
plot(W/(2*pi),(180/pi)*unwrap(angle(H)));
% Plot of the impulse response follows.
figure(3);
plot(zeros(size([0:N-1])));
hold;
stem([0:N-1],B);

⌨️ 快捷键说明

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