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 withexecstr function.

💡 Example

🔗 See also

execstr.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?