Show value of a callback function in uicontrol text

2 ビュー (過去 30 日間)
Sferle Alin-Tudor
Sferle Alin-Tudor 2021 年 5 月 23 日
コメント済み: Walter Roberson 2021 年 5 月 23 日
Hi,
I have a function:
function x=func()
x=12;
end
and I want to use the returned value x in another function as a callback value in a uicontrol text.
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 5 月 23 日
x = func();
handles.NameOfUiControl.String = num2str(x);

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by