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.
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 Exchange에서 Entering 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