This is a static copy of a profile reportHome
iscellstr (65570 calls, 2.634 sec)
Generated 05-Nov-2014 07:52:33 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/strfun/iscellstr.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
13 | res = cellfun('isclass',s,'cha... | 32796 | 0.651 s | 24.7% |  |
14 | tf = all(res(:)); | 32796 | 0.240 s | 9.1% |  |
17 | end | 32774 | 0.200 s | 7.6% |  |
12 | if isa(s,'cell'), | 65570 | 0.190 s | 7.2% |  |
16 | tf = false; | 32774 | 0.150 s | 5.7% |  |
All other lines | | | 1.202 s | 45.6% |  |
Totals | | | 2.634 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 17 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 6 |
Code lines that did run | 6 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function tf = iscellstr(s)
2 %ISCELLSTR True for cell array of strings.
3 % ISCELLSTR(S) returns 1 if S is a cell array of strings and 0
4 % otherwise. A cell array of strings is a cell array where
5 % every element is a character array.
6 %
7 % See also CELLSTR, ISCELL, CHAR, ISCHAR.
8
9 % Copyright 1984-2003 The MathWorks, Inc.
10 % $Revision: 1.17.4.2 $ $Date: 2004/04/10 23:32:38 $
11
0.19 65570 12 if isa(s,'cell'),
0.65 32796 13 res = cellfun('isclass',s,'char');
0.24 32796 14 tf = all(res(:));
0.12 32774 15 else
0.15 32774 16 tf = false;
0.20 32774 17 end