필터 지우기
필터 지우기

How to include next line while showing the output?

조회 수: 4 (최근 30일)
Shavi
Shavi 2012년 5월 3일
Hello everyone..
I have to give my output as when the line ends, the cursor goes to the next line and shows the output in the next line so what code should i have to give?
Please help me
  댓글 수: 4
Walter Roberson
Walter Roberson 2012년 5월 7일
How are you reading the data? What command are you using to display it? What is class() of the variable you have the data stored in?
Shavi
Shavi 2012년 5월 15일
The data is reading by matching with the templates with the help of image segmentation.
i am using the textbox to display the data. so i want the output to be displayed as the input is, as descibed in the above example.
The class of variable is array.
Please give me some solution..

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

답변 (2개)

maria
maria 2012년 5월 3일
You can use the command input(''). When your matlab programm finish will ask you for the parameter to continue.

Walter Roberson
Walter Roberson 2012년 5월 15일
String
For multiple line editable text or static text controls, line breaks occur between each row of the string matrix, and each cell of a cell array of strings. Vertical slash ('|') characters and \n characters are not interpreted as line breaks, and instead show up in the text displayed in the uicontrol.
  댓글 수: 7
Shavi
Shavi 2012년 5월 16일
For ur convenience i have uploaded a file in File Exchange which is input file.
the file name is double1.jpg.
Walter Roberson
Walter Roberson 2012년 5월 24일
I am not able to locate that file. The File Exchange people do not approve uploads which are solely images or data files -- only programs and models.
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by