Hello,
So I used find_system to get all subsystem name, one of them is EmbeddedMATLAB Function.
it occupies only one cell, but if I put it into listdlg it becomes 2 lines of :
Embedded
MATLAB Function
how to make it so that it is also showing as one line on the listdlg?

 Respuesta aceptada

Rik
Rik el 26 de Sept. de 2019

0 votos

There is probably a char 10 or 13 in there. On newer releases it will show a return symbol in the variable editor, but I don't know if that is the case for R2016b.
You can remove them with the line below.
str=strrep(str,{char(10),char(13)},'');%untested
If that errors you may need to call strrep twice.
str=strrep(strrep(str,char(10),''),char(13),'');

1 comentario

Muhammad Halindra Prakoso
Muhammad Halindra Prakoso el 9 de Oct. de 2019
thank you!
the first code returns 2 cells so I call strrep twice

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Productos

Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by