Simulink Dashboard Knob number of decimals

3 Ansichten (letzte 30 Tage)
Vicente Casanova
Vicente Casanova am 20 Okt. 2020
Kommentiert: Vicente Casanova am 28 Okt. 2020
Is it possible to reduce the resolution (i.e. the number of decimals) of the knob?. I mean, when moving the knob it shoud stop (for example) in 4.2 or 4.3 but not in 4.23569871568....
Thanks

Akzeptierte Antwort

Rohit Pappu
Rohit Pappu am 27 Okt. 2020
The resolution of the knob can be adjusted using a block parameter called Tick Interval . Additional documatation about it can be found here
  3 Kommentare
Rohit Pappu
Rohit Pappu am 27 Okt. 2020
As of now, Simulink Knobs only take continuous values and their precision cannot be customized.
Vicente Casanova
Vicente Casanova am 28 Okt. 2020
Thanks again.
I would try to do it with the Round functión.
Best regards

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Control Simulations with Interactive Displays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by