Azzera filtri
Azzera filtri

Divide by zero protection in generated Simulink code

87 visualizzazioni (ultimi 30 giorni)
I'm trying to understand what kind of protection I can get against division by zero, both at the model level and in the C/C++ code.
One option I've thought about has been to create my own divisor block, where I can control the divisor/denominator away from 0 if it ever is zero. Is this the only way, or am I missing something existing in Simulink or in the code to help with this?

Risposta accettata

Kaustubha Govind
Kaustubha Govind il 20 Feb 2013
Modificato: Kaustubha Govind il 20 Feb 2013

Più risposte (0)

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by