buildInstrumentedMex | Generate compiled C code function including logging instrumentation |
showInstrumentationResults | Results logged by instrumented, compiled C code function |
clearInstrumentationResults | Clear results logged by instrumented, compiled C code function |
fi | Construct fixed-point numeric object |
fimath | Set fixed-point math settings |
numerictype | Construct an embedded.numerictype object describing fixed-point
or floating-point data type |
zeros | Create array of all zeros with fixed-point properties |
ones | Create array of all ones with fixed-point properties |
cast | Cast variable to different data type |
cast64BitFiToInt | Cast fi object types that can be exactly represented to a
64-bit integer data type |
cast64BitIntToFi | Cast 64-bit integer types to an equivalent fi object
type |
castFiToInt | Cast fi object to equivalent integer data type |
castFiToMATLAB | Cast fi object type to an equivalent built-in MATLAB data type |
castIntToFi | Cast an integer data type to equivalent fi type |
Manually Convert a Floating-Point MATLAB Algorithm to Fixed Point
Manually convert floating-point MATLAB algorithm to fixed point.
Convert Fast Fourier Transform (FFT) to Fixed Point
This example shows how to convert a version of the Fast Fourier Transform (FFT) algorithm into fixed-point MATLAB code.
Detect Limit Cycles in Fixed-Point State-Space Systems
This example shows how to analyze a fixed-point state-space system to detect limit cycles.
This example shows how to compute and compare the statistics of the signal quantization error when using various rounding methods.
Fixed-Point Conversion Workflows
Learn more about the different fixed-point conversion methods. The conversion method you use depends on your end goal and your level of fixed-point expertise.
Manual Fixed-Point Conversion Workflow
Overview of workflow for manual float-to-fixed conversion.
Manual Fixed-Point Conversion Best Practices
These best practices help you get from generic MATLAB® code to an efficient fixed-point implementation using the manual fixed-point conversion workflow.
Decide Which Workflow is Right for Your Application
Describes benefits of each conversion workflow to help you decide which one best fits your needs.
Know When a Function is Supported for Instrumentation and Acceleration
Determine which functions are supported for fixed-point conversion.
Resolve Error: Function is not Supported for Fixed-Point Conversion
Troubleshoot functions that are not supported for fixed-point conversion.
Troubleshoot fi*
non-fi
errors.
Resolve Error: Data Type Mismatch
Troubleshoot data type mismatch errors.
Resolve Error: Mismatched fimath
Troubleshoot mismatched fimath
errors.