フィルターのクリア

i want to guide edit output has number+text

1 回表示 (過去 30 日間)
지현
지현 2023 年 2 月 8 日
コメント済み: Rik 2023 年 2 月 13 日
example : set(handles.Z1,'string',Z1) =>> Z1 = j 6561
Z1 value is changeable
ex) x = input value ( but now x = 1)
Z1 = 5 * x * 5
set(handles.Z1.'string',Z1)
=> 25
this value => i wanna 25j
i mean imag value
how to do this output..?

回答 (1 件)

Steven Lord
Steven Lord 2023 年 2 月 8 日
Like this?
z = uicontrol(Style="edit");
n = 25;
z.String = string(n*1j);
  2 件のコメント
지현
지현 2023 年 2 月 8 日
i dont use app designer.
i use matlab guide
can guide do it?
Rik
Rik 2023 年 2 月 13 日
Yes, you just need a slightly different syntax and omit the references to the string datatype.
Note that GUIDE does support the syntax Steven posted, but R2015b does not. That is why it is important to include that information.
z = uicontrol('Style','edit');
n = 25;
z.String = num2str(n*1j);

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

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by