Simulink Dashboard Knob number of decimals

조회 수: 2 (최근 30일)
Vicente Casanova
Vicente Casanova 2020년 10월 20일
댓글: Vicente Casanova 2020년 10월 28일
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

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Control Simulations with Interactive Displays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by