Fixed Point Function Replacement and Data Visualization
R2026bReplacement of fixed-point runtime library functions and using
coder.approximateLearn about function replacement and plotting data and visualization support for code generation, and data type specification.
Functions
codegen | Generate HDL or High-Level Synthesis (HLS) code from MATLAB code |
coder.config | Create HDL Coder code generation configuration objects |
coder.approximation | Create function replacement configuration object |
coder.float2fixed.skip | Exclude functions from fixed-point conversion (Since R2024b) |
Classes
coder.FixPtConfig | Floating-point to fixed-point conversion configuration object |
Topics
Function Replacement
- Replace a Function with a Lookup Table Using the HDL Coder App
This example shows how to use the HDL Coder app to replace a custom function with a lookup table. - Replace a Function with a Lookup Table from the Command Line
This example shows how to replace a function with a lookup table approximation in the generated fixed-point code using thecodegenfunction.
Plotting Data and Visualization
- Enable Plotting Using the Simulation Data Inspector
You can use the Simulation Data Inspector to inspect and compare floating-point and fixed-point logged input and output data. - Visualize Differences Between Floating-Point and Fixed-Point Results
To complete this example, you must install the following products: - View and Modify Variable Information
View and modify variable information for fixed-point conversion.
