mat2str
Matrix to String.
Syntax
res = mat2str(M)
res = mat2str(M, 'class')
res = mat2str(M, P, 'class')
Input argument
M - a numerical 2D matrix or logical.
P - an integer value: precision, 15 by default.
Output argument
res - a string
Description
mat2str converts a matrix to a string.
This string may be used to reconstruct the original matrix with execstr function.
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated