Effacer les filtres
Effacer les filtres

stupied question / horizontal Text Field input is vertical

1 vue (au cours des 30 derniers jours)
Max Müller
Max Müller le 5 Oct 2014
Commenté : Max Müller le 5 Oct 2014
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

Réponse acceptée

Image Analyst
Image Analyst le 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()?
  1 commentaire
Max Müller
Max Müller le 5 Oct 2014
There was a rest of an old Code that created this mistake

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by