How can I avoid errors due to division by zero in Simulink?
显示 更早的评论
I am using a simple model in Simulink in which I use a division on two input values using a 'Divide' block.
During my simulation, there might be a zero value fed to the denominator of the 'Divide' block. This often causes a warning, an error message, or erroneous results.
How can I avoid these problems?
采纳的回答
更多回答(1 个)
madhan ravi
2024-1-10
1 个投票
Or making the result to be zero when the divisor is zero using a Switch block
类别
在 帮助中心 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!