home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland Programmer's Resource
/
Borland_Programmers_Resource_CD_1995.iso
/
utils
/
mathstud
/
angle.m
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-05-19
|
224 b
|
10 lines
function y = angle(expr)
% y=angle(x)
% x - input argument (usually complex)
% y - phase angle, in radians, of x
if (nargin ~= 1)
error('angle() takes only one argument')
end
y = atan2(imag(expr), real(expr));