stupied question / horizontal Text Field input is vertical

4 次查看(过去 30 天)
Hey Guys,
I have this Array;
WhichShots =
'I.' 'II.'
It was created this way:
WhichShots = [EmptySpace,Text1,EmptySpace,Text2 ...... EmptySpace,Textn]
Now I just want to wirte it in a Text Field, but the text field looks not like this:
'I.' 'II.'
It looks like this
'I.'
'II.'
So it its vertical not horizontal as i want it. What did I do wrong ? The Text Field is big enough

采纳的回答

Image Analyst
Image Analyst 2014-10-5
Something's wrong. Your first WhichShots would have to be a cell array because there are two separate strings of different lengths, or else you put apostrophes into your string. The second one should be a string row vector, assuming all your substrings are regular 1-row character vectors. Why is there that discrepancy?
What does this say when you put it all by itself on a line
WhichShots
How are you displaying the text? Into an edit text box with set()? Into a static text control with set()? Into a plot/chart/graph/image with text()?

更多回答(0 个)

类别

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