|Generate compiled C code function including logging instrumentation|
|Results logged by instrumented, compiled C code function|
|Clear results logged by instrumented, compiled C code function|
|Construct fixed-point numeric object|
|Set fixed-point math settings|
|Construct numerictype object|
Manually convert floating-point MATLAB algorithm to fixed point
This example shows how to set fixed-point data types by instrumenting MATLAB code for min/max logging and using the tools to propose data types.
This example shows how to convert a version of the Fast Fourier Transform (FFT) algorithm into fixed-point MATLAB code.
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.
This example shows you how to convert a finite impulse-response (FIR) filter to fixed point by separating the fixed-point type specification from the algorithm code.
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.
Overview of workflow for manual float-to-fixed conversion.
These best practices help you get from generic MATLAB® code to an efficient fixed-point implementation using the manual fixed-point conversion workflow.
Benefits of each conversion workflow to help you decide which one best fits your needs
How to find out which functions are supported for fixed-point conversion
How to deal with functions that are not supported for fixed-point conversion
How to fix fi*non-fi errors
How to fix data type mismatch errors
How to fix mismatched fimath errors