📄 phasepw.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -