MATLAB Answers

0

How can I make Simulink return an error if a division by zero occurs?

Asked by Alexander Schäfer on 14 Nov 2019 at 9:00
Latest activity Answered by Amira benAmeur on 18 Nov 2019 at 8:23
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 Comments

Sign in to comment.

Tags

Products