Switch Block: Can we disable Integer Round off option

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 comentarios

Yash
Yash el 20 de Mzo. de 2025
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.
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Versión

R2022b

Etiquetas

Preguntada:

el 20 de Mzo. de 2025

Respondida:

el 20 de Mzo. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by