Choosing the scaling for the fixed-point variables in your algorithms can be difficult. In the Fixed-Point Designer™ software, you can use a combination of data type override and min/max logging with automatic model-wide instrumentation to help you discover the numerical ranges that your fixed-point data types need to cover. These ranges dictate the appropriate scalings for your fixed-point data types.
|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|
|Determine fixed-point data type|
Data type override using the
Learn about workflow for manual float-to-fixed conversion.
Get from generic MATLAB code to an efficient fixed-point implementation using manual fixed-point conversion.
Manual conversion of a floating-point MATLAB algorithm to fixed point.