I know about MATLAB\'s format long, format short, eng ... and so on. But short and long will always display a predefined number of decimals, with
According to the documentation it does allow you to format the number.
Also, the formatting is well documented as well.