stupied question / horizontal Text Field input is vertical

4 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Image Analyst
Image Analyst el 5 de Oct. de 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()?

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by