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?

 채택된 답변

Rik
Rik 2019년 9월 26일

0 개 추천

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

Muhammad Halindra Prakoso
Muhammad Halindra Prakoso 2019년 10월 9일
thank you!
the first code returns 2 cells so I call strrep twice

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by