uilable with variable and char

5 次查看(过去 30 天)
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 个评论
Scott MacKenzie
Scott MacKenzie 2021-4-22
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.

请先登录,再进行评论。

采纳的回答

VBBV
VBBV 2021-4-22
%if true
app.Field(v) = uilabel('Parent',app.Panel_2,'Position',[10,10,110,22],'Text',["Measurement "+v]);
  3 个评论
VBBV
VBBV 2021-4-22
编辑:VBBV 2021-4-22
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);

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by