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?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Abr. de 2017

1 voto

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

Más respuestas (0)

Categorías

Más información sobre Desktop en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Abr. de 2017

Editada:

el 24 de Abr. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by