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?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 24 Apr. 2017

1 Stimme

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

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by