MATLAB: Fprintf question and application.

fprintfMATLAB

fprintf( '%7sVIII\n', 'Henry' )
fprintf( '%1sVIII\n', 'Henry' )
I can't understand the difference between the two. They have the same output. How does the field size value effect the fprintf?

Best Answer

Write this, you will understand
fprintf( '%50sVIII\n', 'Henry' )
Related Question