num2str
- :
s =num2str(x)¶ - :
s =num2str(x, prec)¶ - :
s =num2str(x, fmt)¶ Convert a number or array to a character array (one row per row of x).
Integer valued input is printed in full. Other real input is printed with enough significant digits for the largest element (at least 5, at most 16). prec selects the number of significant digits instead. fmt is a
sprintfformat applied to each row. Complex input is printed asre+imi.Columns are separated by a fixed width gap and blank columns common to all rows are removed on the left. Character input is returned unchanged.