You might try the command fi
For example, converting the value 1.5 to fixed-point signed, with wordlength 10 and fraction length 6, you type:
a = fi(1.5,1,10,6);
See more about this command in the documentation:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!