stupied question / horizontal Text Field input is vertical

5 views (last 30 days)
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

Accepted Answer

Image Analyst
Image Analyst on 5 Oct 2014
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()?

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!