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

📄 freqpw.m

📁 里面囊括了基于matlab滤波器设计的各种.m文件
💻 M
字号:
 
% F = FREQPW(B,A,color)
%
% The same as the FREQPLOT, but using FREQZ(B,A,N,'WHOLE')
% This function is used to plot the amplitude response of filter
% or signal. A logarithmic (base 10) scale is used for the Y-axis.
% X-axis is normalized freqency from 0 to 0.5. The color will be
% the one specified in argument. If there is no color specification,
% the color will be white. Also see DPLOT
%

function F = freqpw(B,A,c)

 if nargin == 2
  c = 'w';
 end

 [F,W]=freqz(B,A,1024,'whole');
 W=linspace(0,1.0,1024);
 F_ABS = abs(F);

 %F_DB = dbvalue(F_ABS/max(F_ABS));

 F_DB = dbvalue(F_ABS);
 plot(W,F_DB,c)
 
 xlabel('Normalized Frequency');
 ylabel('Magnitude(dB)');

⌨️ 快捷键说明

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