This is a static copy of a profile reportHome
iscellstr (14248 calls, 0.470 sec)
Generated 05-Aug-2011 13:00:28 using cpu time.
function in file /usr/local/MATLAB/R2011a/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 |
12 | if isa(s,'cell'), | 14248 | 0.164 s | 34.9% |  |
13 | res = cellfun('isclass',s,'cha... | 7273 | 0.120 s | 25.6% |  |
14 | tf = all(res(:)); | 7273 | 0.033 s | 7.0% |  |
17 | end | 6975 | 0 s | 0% |  |
16 | tf = false; | 6975 | 0 s | 0% |  |
All other lines | | | 0.153 s | 32.6% |  |
Totals | | | 0.470 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.16 14248 12 if isa(s,'cell'),
0.12 7273 13 res = cellfun('isclass',s,'char');
0.03 7273 14 tf = all(res(:));
6975 15 else
6975 16 tf = false;
6975 17 end