MATLAB Function Reference Previous page   Next Page

Determine if input is MATLAB keyword



tf = iskeyword('str') returns logical 1 (true) if the string str is a keyword in the MATLAB language and logical 0 (false) otherwise.

iskeyword str uses the MATLAB command format.

iskeyword returns a list of all MATLAB keywords.


To test if the word while is a MATLAB keyword,

To obtain a list of all MATLAB keywords,

See Also

isvarname, genvarname, is*

Previous page  isinteger isletter Next page

© 1994-2005 The MathWorks, Inc.