フィルターのクリア

App Designer dispaly values in Text area and Guage

17 ビュー (過去 30 日間)
Mo
Mo 2022 年 12 月 16 日
コメント済み: Voss 2022 年 12 月 16 日
Hi
I created a function to get some results (e.g. A=3, B=5, ...) from my equations (A=m.a) and I can disaply my results in a table. How can I disaply the values as a number in Text area and also in Gauge? My results are saved as 'A' and 'B'.
I tried these functions but they do not work and I think I need to convert my values to something for reading in Text Area and Gauage. Any help?
A=app.AGauge;
OR
app.AGauge=A;

採用された回答

Voss
Voss 2022 年 12 月 16 日
% textarea
app.BText.Value = num2str(B); % assuming BText is the name of your textarea
% gauge
app.AGauge.Value = A;
References:
  2 件のコメント
Mo
Mo 2022 年 12 月 16 日
Wonderful and thanks so much
Voss
Voss 2022 年 12 月 16 日
You're welcome!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by