How to include next line while showing the output?
古いコメントを表示
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
2012 年 5 月 3 日
Please expand on the question. Perhaps you could give an example.
Shavi
2012 年 5 月 7 日
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
2012 年 5 月 15 日
回答 (2 件)
maria
2012 年 5 月 3 日
0 投票
You can use the command input(''). When your matlab programm finish will ask you for the parameter to continue.
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
2012 年 5 月 15 日
Walter Roberson
2012 年 5 月 15 日
How are you setting the String of the uicontrol textbox at present? The String parameter needs to be a cell array of strings, or a character array.
set(handles.pqr, 'String', ['ABCDEFGH'; 'IJKLMNOP'])
or
set(handles.pqr, 'String', {'ABCDEFGH', 'IJKLMNOP'})
Shavi
2012 年 5 月 16 日
Walter Roberson
2012 年 5 月 16 日
If that is your input, then you cannot have the output have the same alignment as the input, as your input has no position information remaining on it.
Shavi
2012 年 5 月 16 日
Shavi
2012 年 5 月 16 日
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
カテゴリ
ヘルプ センター および File Exchange で Template Matching についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!