Fixed Point Function Replacement and Data Visualization
|Floating-point to fixed-point conversion configuration object|
The Fixed-Point Designer™ MATLAB® Coder™ software provides an option to generate lookup table approximations for continuous and stateless single-input, single-output functions in your original MATLAB code.
With HDL Coder™, you can generate lookup table approximations for functions that do not support fixed-point types, and replace your own functions.
With HDL Coder, you can handle functions that are not supported for fixed point and replace your own functions.
Plotting Data and Visualization
You can use the Simulation Data Inspector to inspect and compare floating-point and fixed-point logged input and output data.
This example shows how to configure the
codegen function to use a
custom plot function to compare the behavior of the generated fixed-point
code against the behavior of the original floating-point MATLAB code.
To log data for histograms:
View and modify variable information for fixed-point conversion.