Switch Block: Can we disable Integer Round off option

조회 수: 2 (최근 30일)
Sumit Kumar
Sumit Kumar 2025년 3월 20일
답변: Paul 2025년 3월 20일
Hello Team,
I have scenario where the allowable range for a signal is -1 to 0.99, i am using Switch block to decide the outputs, Now as the values are very low like -0.25, now this value becomes 0 due to integer round off option.
Please suggest any better option
  댓글 수: 2
Yash
Yash 2025년 3월 20일
Can you please share the model? or any steps to reproduce the issue. MATLAB should not round off -0.25, by default everything is a double.
John D'Errico
John D'Errico 2025년 3월 20일
We don't know what you did. But switch has no integer round off option. So we know only that you don't understand what is happening. And without seeing what you did, we cannot help you.

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

답변 (1개)

Paul
Paul 2025년 3월 20일
Saturation block might be useful ...

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by