phasepw.m
来自「里面囊括了基于matlab滤波器设计的各种.m文件」· M 代码 · 共 23 行
M
23 行
% PHASEPW(B,A,color)
%
% This function is used to plot the phase response of filter
% or signal. The Y-axis is phase (radians); X-axis is normalized
% freqency from 0 to 1. The color will be the one specified
% in argument. If there is no color specification, the color
% will be white. Also see PHPLOT
function F = phasepw(B,A,c)
if nargin == 2
c = 'w';
end
[F,W]=freqz(B,A,1000,'whole');
W=linspace(0,1,1000);
F = angle(F);
plot(W,F,c)
xlabel('Normalized Frequency');
ylabel('Phase (Radians)');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?