Programming |
Keywords
MATLAB reserves certain words for its own use as keywords of the language. To list the keywords, type
iskeyword
ans =
'break'
'case'
'catch'
'continue'
'else'
'elseif'
'end'
'for'
'function'
'global'
'if'
'otherwise'
'persistent'
'return'
'switch'
'try'
'while'
See the online function reference pages to learn how to use these keywords.
You should not use MATLAB keywords other than for their intended purpose. For example, a keyword should not be used as follows:
Lifetime of a Variable | Special Values |
© 1994-2005 The MathWorks, Inc.