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

📄 c9ex15.m

📁 数字信号处理Matlab实现?中藕糯鞰atlab实现数字信号处理Matlab实现
💻 M
字号:
f = [0 0.2 0.22 0.5 0.52 1];            % Specify f vectorm = [1 1 0.4 0.4 0 0];                  % Specify amplitude responsen = 30;                                 % Define nb = remez(n,f,m);                       % Compute impulse response[h,w] = freqz(b,1,512);                 % Compute frequency responseamp = abs(h);                           % Compute amplitude responsesubplot(2,1,1)                          % Designate first subplotplot(f/2,m,w/(2*pi),amp,'--')      % Plot amplitude responsexlabel('Normalized Frequency - r')      % Label x-axisylabel('Amplitude')                     % Label y-axisphase = angle(h);                       % Calculate phasephase = unwrap(phase);                  % Unwrap phasephasedeg = phase*180/pi;                % Express phase in degreessubplot(2,1,2)                          % Designate second subplotplot(w/(2*pi),phasedeg,'--')           % Plot phase responsexlabel('Normalized Frequency - r')      % Label x-axisylabel('Phase - degrees')               % Label y-axis

⌨️ 快捷键说明

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