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 Exchange에서 Desktop에 대해 자세히 알아보기

질문:

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