How to float to fixed-point matlab?
You can convert floating-point MATLAB® code to fixed-point code using the Fixed-Point Converter app or at the command line using the fiaccel function -float2fixed option. You can choose to propose data types based on simulation range data, derived (also known as static) range data, or both.
What is fixed-point vs floating-point?
The term 'fixed point' refers to the corresponding manner in which numbers are represented, with a fixed number of digits after, and sometimes before, the decimal point. With floating-point representation, the placement of the decimal point can 'float' relative to the significant digits of the number.
What is Q31 range?
Q31_Asin. Function returns the arc sine of x . The input number is in the Q31 format number and returns value in the Q31 format, ranging from -2147483648 to 2147483648.