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 件のコメント

TheDice
TheDice 2021 年 4 月 22 日
v is a double
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 日

0 投票

%if true
app.Field(v) = uilabel('Parent',app.Panel_2,'Position',[10,10,110,22],'Text',["Measurement "+v]);

3 件のコメント

TheDice
TheDice 2021 年 4 月 22 日
When i write it like this:
app.TanDelta_Field(v) = uilabel('Parent',app.Panel,'Position',[10,10,110,22],'Text',['Meas ' +v ' Tan' char(948)]);
it looks like this:
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);
VBBV
VBBV 2021 年 4 月 22 日
Try the above

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2021 年 4 月 22 日

コメント済み:

2021 年 4 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by