Problem with multi-line in TextEdit box
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!