MATLAB: Fix point for simulink signals

fix pointsimulinksimulink fixed point

Hi, I have some single simulink signals need to be convert to fix point numeric type If I only change the datatype from single to 'fixdt(x,x,x)', does it work? espeically for RTW? What is the right way? Thx!

Best Answer

Yes, technically speaking that should be all you need to do, but the Simulink Fixed Point product comes with several tools that help you figure out the right fixed-point type and resolve scaling issues. Perhaps watching the videos on my previous link is a good starting point.