?? phase.m
字號(hào):
function PHI=phase(G)%PHASE Computes the phase of a complex vector%% PHI=phase(G)%% G is a complex-valued row vector and PHI is returned as its% phase (in radians), with an effort made to keep it continuous% over the pi-borders.% L. Ljung 10-2-86% Copyright (c) 1986-97 by The MathWorks, Inc.% $Revision: 2.2 $ $Date: 1997/04/16 20:02:51 $PHI=atan2(imag(G),real(G));N=length(PHI);DF=PHI(1:N-1)-PHI(2:N);I=find(abs(DF)>3.5);for i=Iif i~=0,PHI=PHI+2*pi*sign(DF(i))*[zeros(1,i) ones(1,N-i)];endend
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -