Fixed-Point Conversion - MATLAB & Simulink (original) (raw)

Convert floating-point code to fixed point, optimize fixed-point data types (requires Fixed-Point Designerâ„¢)

If you have the Fixed-Point Designer product, to meet target hardware constraints, generate fixed-point C/C++ code.

Classes

coder.FixPtConfig Floating-point to fixed-point conversion configuration object

Functions

coder Open MATLAB Coder app
codegen Generate C/C++ code fromMATLAB code
coder.config Create code generation configuration objects
coder.approximation Create function replacement configuration object
coder.float2fixed.skip Exclude functions from fixed-point conversion (Since R2024b)

Topics

Automated Fixed-Point Conversion Workflow

Propose Fixed-Point Types

Function Replacements

Verify Fixed-Point Conversion

Troubleshooting