| MATLAB Function Reference | ![]() |
Syntax
iskeyword 's'
iskeyword
R = iskeyword('s')
Description
iskeyword 's'
若字串 s 是 MATLAB 的關鍵字則回傳 1;反之,則回傳 0。
R = iskeyword('s')
若字串 s 是 MATLAB 的關鍵字則 R 為 1;反之,則為 0。
Examples
iskeyword 'while'
ans =
1
iskeyword
'break'
'case'
'catch'
'continue'
'else'
'elseif'
'end'
'for'
'function'
'global'
'if'
'otherwise'
'persistent'
'return'
'switch'
'try'
'while'
See Also
isvarname, is*
| isjava | ismember | ![]() |