MATLAB: How to use decimal values with fixed point typing decimalfixed-point How can i use a decimal values with "integer typing"? for example: 1.01 value onto 16 bits represention fixed point Thanks Best Answer a = fi(1.01)bin(a)Please refer to the following:https://in.mathworks.com/help/fixedpoint/ref/fi.htmlhttps://in.mathworks.com/help/fixedpoint/ref/bin.html Related SolutionsMATLAB: Decimal This is a user defined function available on the FEX: round2dp.To use it, you have to download it and then add to MATLAB the path where you unzip it. In MATLAB File > Set path MATLAB: Decimals C ~= round(C)will return 1 for any position that is not an integer.You may also want to try something likefprintf('%.99g\n', C) Related QuestionSimulink Fixed Point vs Fixed point toolboxFixed Point
Best Answer