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

조회 수: 10 (최근 30일)
Alexander Schäfer
Alexander Schäfer 2019년 11월 14일
답변: Amira benAmeur 2019년 11월 18일
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?

답변 (1개)

Amira benAmeur
Amira benAmeur 2019년 11월 18일

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by