Name of an object
This functionality does not run in MATLAB.
prog::getname(object) returns the name of the MuPAD® object 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 "(noname)" is returned.
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)