This is a static copy of a profile reportHome
iskeyword (1 call, 0.000 sec)
Generated 05-Nov-2014 07:52:56 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/lang/iskeyword.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
genvarname | function | 1 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
43 | end | 1 | 0 s | 0% |  |
42 | L = any(strcmp(s,L)); | 1 | 0 s | 0% |  |
41 | else | 1 | 0 s | 0% |  |
38 | if nargin==0 | 1 | 0 s | 0% |  |
15 | L = {... | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 43 |
Non-code lines (comments, blank lines) | 37 |
Code lines (lines that can run) | 6 |
Code lines that did run | 5 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 83.33 % |
Function listing
time calls line
1 function L = iskeyword(s)
2 %ISKEYWORD Check if input is a keyword.
3 % ISKEYWORD(S) returns one if S is a MATLAB keyword,
4 % and 0 otherwise. MATLAB keywords cannot be used
5 % as variable names.
6 %
7 % ISKEYWORD used without any inputs returns a cell array containing
8 % the MATLAB keywords.
9 %
10 % See also ISVARNAME, GENVARNAME.
11
12 % Copyright 1984-2008 The MathWorks, Inc.
13 % $Revision: 1.3.4.4 $ $Date: 2008/06/24 17:13:58 $
14
1 15 L = {...
16 'break'
17 'case'
18 'catch'
19 'classdef'
20 'continue'
21 'else'
22 'elseif'
23 'end'
24 'for'
25 'function'
26 'global'
27 'if'
28 'otherwise'
29 'parfor'
30 'persistent'
31 'return'
32 'spmd'
33 'switch'
34 'try'
35 'while'
36 };
37
1 38 if nargin==0
39 % Return the list only
40 return
1 41 else
1 42 L = any(strcmp(s,L));
1 43 end