| << newline | String type | replace >> |
| S = num2str(A) |
| S = num2str(A, precision) |
| S = num2str(A, formatSpec) |
a numerical matrix or logical.
an positive integer value: Maximum number of significant digits.
a character array: Format of output fields.
a character array: text representation of input array.
num2str converts numbers to character array.
num2str trims any leading spaces from a character array. For better control over the results, use sprintf.
R = num2str(pi, 4)
R = num2str(magic(3))
| Version | Description |
|---|---|
| 1.0.0 | initial version |
Allan CORNET