what is command for instead DEGREES(ATAN2(A2,B2)) formula in excel??

조회 수: 5 (최근 30일)
galaxy
galaxy 2022년 6월 3일
댓글: galaxy 2022년 6월 8일
Dear all !!!
I tried to change formula from excel file to matlab function. But result didnot same as figure.
Can anyone help me to explain and fix it?
Thank you
  댓글 수: 6
David Goodmanson
David Goodmanson 2022년 6월 4일
Hi galaxy,
exactly how, in what environment, are those values of -179... being calculated? Certainly if you import the values of E and N into Matlab, you get +179... as you should.
galaxy
galaxy 2022년 6월 8일
Thank you for your answers.
I don't know why, but I tried in Matlab ver 2019b, it had right value, 179.
Maybe I was wrong. I will detele this question, sorry for the inconvenience.

댓글을 달려면 로그인하십시오.

답변 (1개)

Benjamin Thompson
Benjamin Thompson 2022년 6월 4일
Since -179 and 179 degrees are very nearly equal, those results are actually within the tolerance of your other results. If you used the wrong sign on the "N" component this would explain it, and just keep in mind when very small number and very large numbers are used together in calculations this can lead to odd results. Also is the Excel screenshot showing any rounding, such that the calculations are using additional digits of precision that Excel is not displaying?

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by