MATLAB: How to shorten the amount of decimal spaces in a fprintf statement

decimalsfprintf

I type in:
fprintf('The final student score is %f\n',round(final_points,1))
and the answer it gives me is:
The final student score is 690.200000
I need this to be shortened to 690.2, but cant figure out how. Please and thank you!

Best Answer

Instead of %f use %.1f