Matlab Sprintf, See syntax, examples, and formatting operators for different data types and output options. ...