How to include tabs in a GUI static text?

6 vues (au cours des 30 derniers jours)
Oliver Silva
Oliver Silva le 24 Août 2016
Modifié(e) : Geoff Hayes le 25 Août 2016
I am using:
set(handles.txt_result, 'String', result);
where the result has tabs and changing lines in the form '\t' and '\n' the changing lines work well but not the tabs. I have tried results as char, string, event as sprintf but i can not make it work.
  1 commentaire
Robert
Robert le 24 Août 2016
Is handles.txt_result the handle to a uicontrol label? What version of MATLAB are you using? What do you see in place of the tab character? A space? Nothing?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Characters and Strings 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