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-2004 The MathWorks, Inc. 
%   $Revision: 5.7.4.1 $  $Date: 2004/06/25 18:51:44 $

% Clever way:
% p = imag(log(h));

% Way we'll do it:
p = atan2(imag(h), real(h));

