How can I make Simulink return an error if a division by zero occurs?
8 次查看(过去 30 天)
显示 更早的评论
Hi.
When i run my model I would like to Simulink to crash with an error (or at least print out a warning) if a division by zero occurs in a Matlab function block. I have looked around in the Model Configuration Parameters but I can't find a setting for it. The only setting I have found is "Diagnostics->Data Validity->Inf or NaN block output" but setting that to error only works if the value is outputed from a block not if the division by zero occurs somewhere inside a Matlab function for example. Is this possible?
0 个评论
回答(1 个)
Amira benAmeur
2019-11-18
Hello Alexander,
there are similar answered questions, i hope they would help you.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!