function p = angle(h)
%ANGLE Phase angle.
% ANGLE(H) returns the phase angles, in radians, of a matrix with
% complex elements.
%
% Class support for input X:
% float: double, single
%
% See also ABS, UNWRAP.
% Copyright 1984-2010 The MathWorks, Inc.
p = atan2(imag(h), real(h));
单位rad,h可以为复数矩阵。
好吧,这个函数其实很简单,但是还是可以学习一下。毕竟自己写也多几个字母呢。