フィルターのクリア

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 件のコメント
Walter Roberson
Walter Roberson 2016 年 11 月 7 日
Along with vpa()
Imam
Imam 2016 年 11 月 9 日
Thank you very much it works!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by