I execute the following commands in both MATLAB 7.0 (R14) and 6.5.1 (R13SP1):
x1 = atan2(-[0 0], -[0 0])x2 = angle([-0-0i -0-0i])
In MATLAB 6.5.1 (R13SP1) I receive "[0 0]" as the output, but in MATLAB 7.0 (R14), I receive "[pi pi]".
angleatan2fdlibmMATLABr14zero
x1 = atan2(-[0 0], -[0 0])x2 = angle([-0-0i -0-0i])
Best Answer