フィルターのクリア

How to make gauge value variable?

11 ビュー (過去 30 日間)
Murat Sari
Murat Sari 2020 年 6 月 5 日
編集済み: Cris LaPierre 2020 年 6 月 5 日
I created two gauges using App Designer. Went into corresponding gauge codes and change the value to constant value such as 19 and 54 just as given in the pic below. However, what I want is a moveable arc. For example 'gauge' goes from 0 to 45 smoothly and changing between 45 to 35 as long as I keep open the app. How to achieve this? Gauge code doesn't allow me to edit on code so I couldn't play with it. :/ Any ideas?

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 6 月 5 日
編集済み: Cris LaPierre 2020 年 6 月 5 日
You can programmatically change the properties of a gauge. For a list of properties, see this page.
The code might look something like this:
app.Gauge.Value = var;
Any time this code is called in your app, it will update the value of Gauge to be the current value of var.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by