Inserting / between two number on set parameter
Info
This question is closed. Reopen it to edit or answer.
Show older comments
HI everybody,
I want to insert '/' between a complex number that will be set in a gui. Today the code is:
set(handles.tensao_VA,'String',sprintf('%g%+gi', real(VA_fase), imag(VA_fase)))
This above code give me a complex number in the orthogonal way, but i want to show in the way Abs/ang.
How can insert '/' between theses number?
In my mind i need to do:
set(handles.tensao_VA,'String',sprintf('%g%+gi', abs(VA_fase),'/',[(180*angle(VA_fase)/pi)]))
But it's not working...
1 Comment
Jucimar Carpe
on 31 Mar 2019
Edited: Jucimar Carpe
on 31 Mar 2019
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!