Hover mouse over a complex number

How can I set the display of value of a complex number to polar form when hover mouse over it in script. Is there any setting or preference to let me do this?

 採用された回答

Star Strider
Star Strider 2016 年 8 月 23 日

0 投票

I can’t find phasor format as an option for the Tooltips. Tooltip format appears to be defined by default, and with the exception of following the setting of the format function, not customizable.

2 件のコメント

Jack
Jack 2016 年 8 月 25 日
Thank you.
Star Strider
Star Strider 2016 年 8 月 25 日
My pleasure.
The only available option is to create your own phasor anonymous function:
phasr = @(z) [abs(z) angle(z)*180/pi];
then, as with all functions:
a = 1 + 1j;
ap = phasr(a)
and the Tooltip for ‘ap’ will be:
ap =
1.4142 45.0000

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

製品

タグ

質問済み:

2016 年 8 月 23 日

コメント済み:

2016 年 8 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by