Farhat Mann
Farhat Mann

Reputation: 283

How to display multilines output in a line (Horizontal view) in Matlab?

I have made an program that can display many outputs in same textbox in matlab. The main program do looping and the GUI catch the output and display the outputs in same textbox. But the problem is that the output is displayed in new line. Iwan to display the output just in one line.. How to do it? Here is my Gcode to display the output in the GUI.

 letterr = ProcessOutput;
 set(handles.text4,'String',letterr);

Upvotes: 0

Views: 299

Answers (1)

Lucius II.
Lucius II.

Reputation: 1832

you can use

set(handles.text4,'String',strjoin(letterr));

depending on the version of matlab you are using, this function is implemented or not. If not, you can get it from here:

File-exchange: strjoin

Upvotes: 1

Related Questions