This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Functional access to symbols

MuPAD® notebooks are not recommended. 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.




Symbol::new(symname) or simply Symbol(symname) creates the typesetting symbol corresponding to symname.

The typesetting symbols can be accessed in two different ways: Most symbols can be input by typing Symbol::symname, where symname is taken from the lists in the introduction. For some symbol names (such as not or I), this is not possible in the MuPAD® language. What is possible in any case is to invoke Symbol as a function, taking a string representation as its argument, as in Symbol("not").


Example 1

The symbols accessed via Symbol can be used like ordinary identifiers:

Symbol::heartsuit in 
   {Symbol::heartsuit, Symbol::spades}

expand((Symbol::alpha + Symbol::beta)^4);

Some symbol names are MuPAD keywords and can not be accessed via slot calls. They can be given as function calls:

Symbol("minus"), Symbol("div"), Symbol("in"), 
Symbol("and"), Symbol("subset"), Symbol("NIL"), 
Symbol("UNKNOWN"), Symbol("FAIL"), Symbol("E"), 
Symbol("I"), Symbol("not")



A symbol name: a string

Return Values


See Also

MuPAD Functions

Was this topic helpful?