Conversion

Convert between data types

Note

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

MuPAD Functions

coerceType conversion
exprConvert into an element of a basic domain
expr2textConvert objects into character strings
int2textConvert an integer to a character string
intervalConvert constant subexpressions to intervals
strprintPrint into string
tbl2textConcatenate the strings in a table
text2exprConvert a character string to an expression
text2intConvert a character string to an integer
text2listSplit a character string into a list of substrings
text2tblSplit a character string into a table of substrings
linalg::expr2MatrixConstruct a matrix from equations
prog::exprlistConvert an expression into a nested list

Topics

Convert Data Types

When creating new objects in MuPAD, the best practice is to consider which domain the object must belong to.