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!