필터 지우기
필터 지우기

Phase of a complex number is wrongly understood to be zero by MATLAB

조회 수: 2 (최근 30일)
Imam
Imam 2016년 11월 7일
댓글: Imam 2016년 11월 9일
I am doing a calculation of the phase of a complex number. However, the magnitude of this number is so small (around the order of 10^-400) so that MATLAB assumes both its magnitude and phase to be zero. So, I guess one way to get the correct phase is to decrease MATLAB's smallest number. But I doubt that's impossible. Any trick to get around this?

채택된 답변

Walter Roberson
Walter Roberson 2016년 11월 7일
The smallest number that MATLAB can represent numerically is about 4.94065645841247e-324 . 10^(-400) is right out for numeric work.
For higher precision you need to go for the Symbolic Toolbox.
  댓글 수: 4
Imam
Imam 2016년 11월 9일
Thank you very much it works!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by