Details

Specify whether to generate nonfinite data and operations. When selected, generates nonfinite data (for example, NaN and Inf) and related operations. Otherwise, does not generate nonfinite data and operations.


Tradeoffs to Consider

If you clear this option, an error occurs if MATLAB Coder encounters nonfinite data or expressions.

Code generation is optimized with the assumption that there is no nonfinite data. However, if your application produces nonfinite numbers, the behavior of the generated code might be inconsistent with simulation results when processing nonfinite data.