mlreportgen.utils.toString class

Package: mlreportgen.utils
Superclasses:

Create string representation of MATLAB variable

Construction

convValue = toString(varName) converts the value of any MATLAB® variable to a string.

Input Arguments

expand all

MATLAB variable whose value to convert to a string.

Output Arguments

expand all

Converted MATLAB variable value, returned as a string.

Examples

collapse all

num = 10;
convValue = mlreportgen.utils.toString(num)
convValue =
    "10"
matrix = [1,7,10;3,1,6];
convValue = import mlreportgen.utils.toString(matrix)
convValue =
    "[1   7  10 ;
      3   1   6 ]"

Introduced in R2018b