Problem with multi-line in TextEdit box
이전 댓글 표시
Hi, I cannot find a way to display the text in multiple lines in text edit box. I read that I all I need is to set property Max to be larger than Min (e.g. Max = 2), but this does not do the trick. For test purpose I have simple GUI, with only one text edit box and one button. "Pushbutton1_Callback" function executes the following code:
for i =1 :100
set(handles.edit1,'String', [num2str(i), ' test'] );
pause(0.1);
end
However, all i get on the box is single line. How can I fix this to obtain multiple lines like this:
1 test
2 test
3 test ....
Thank you!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!