Effacer les filtres
Effacer les filtres

uilable with variable and char

7 vues (au cours des 30 derniers jours)
TheDice
TheDice le 22 Avr 2021
Commenté : Scott MacKenzie le 22 Avr 2021
Hello I have a label into which I integrate my variable v. If I write it like in the example it works. But I would like that there is "Measurement "v" char(948)". How can i solve my problem?
app.Field(v) = uilabel('Parent',app.Panel_2,'Position',[10,10,110,22],'Text',(("Measurement "+v)));
  2 commentaires
TheDice
TheDice le 22 Avr 2021
v is a double
Scott MacKenzie
Scott MacKenzie le 22 Avr 2021
What do you mean by
I would like that there is "Measurement "v" char(948)"
What, exactly, are you trying to present in the label? It would help if you gave an example.

Connectez-vous pour commenter.

Réponse acceptée

VBBV
VBBV le 22 Avr 2021
%if true
app.Field(v) = uilabel('Parent',app.Panel_2,'Position',[10,10,110,22],'Text',["Measurement "+v]);
  3 commentaires
VBBV
VBBV le 22 Avr 2021
Modifié(e) : VBBV le 22 Avr 2021
text = sprintf('Measurement %d \t Tan %s',v,char(948));
app.TanDelta_Field(v) = uilabel('Parent',app.Panel,'Position',[10,10,110,22],'Text',text);
VBBV
VBBV le 22 Avr 2021
Try the above

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer 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