MATLAB: Confused with atan2d for negative number atan2dnegativenumber hi, why is atan2d(-3,-1) is diffrent than atan2d(3,1)? thank you Best Answer Because you measure the angle in a different quadrant. It's not the same -20 degrees than 20 degrees. Matlab documentation is very explicative, visit it for further details. Related SolutionsMATLAB: Inverse of atan2d Try this: y = 2;x = 3;answer = atan2d(y,x)xa = cosd(answer)ya = sind(answer)test = atan2d(ya,xa) MATLAB: Confused about atan versus angle- Not getting the same result! Hi,angle works correctly on complex numbers:atan((.001354/.003453))atand((.001354/.003453))angle((.001354i+.003453))% This is what you did:angle(.001354/.003453)+0iBest regardsStephan Related QuestionHDL Coder atan / atan2Issue with atan2(.)
Best Answer