MATLAB Compiler    

Optimizing MATLAB Arrays

Scalars

(percolate_simple_types) This optimization reduces the strength of operations on simple types (scalars) by reducing operations to scalar double operations whenever possible. For example, if your code uses sin(v) and v is known to be double and scalar, this optimization uses the scalar double sin function. This optimization is always on when compiling to C/C++ and cannot be disabled. It is provided for compatibility with P-code generation.


  Optimizing Conditionals Scalar Doubles