Name of an object
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
prog::getname(object) returns the name of
the MuPAD® object
The return value is a string, irrespective of the type of the input.
Names can be extracted from procedures, identifiers, function
environments, domains and their methods (and strings, of course).
If no name can be extracted from an object, the string
For all other MuPAD objects the result of
expr2text(object) is returned as name.
My own name:
The name of a Domain:
The “name” of an arbitrary MuPAD object:
prog::getname(a + 2*b)
Any MuPAD object
Name as string