I use:
set(handles.edit1,'string',C(1,1));
Where C(1,1)-complex number, example -0.05558+0.020032i , but I see only real part.What to do?

 採用された回答

Walter Roberson
Walter Roberson 2017 年 4 月 24 日

1 投票

set(handles.edit1, 'string', sprintf('%g%+gi', real(C(1,1)), imag(C(1,1)) )

その他の回答 (0 件)

カテゴリ

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

質問済み:

2017 年 4 月 24 日

編集済み:

2017 年 4 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by