This is a static copy of a profile reportHome
issubfield (3 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:53 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/issubfield.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 |
19 | retVal = retVal & eval(spr... | 2 | 0.011 s | 100.0% |  |
50 | return; | 3 | 0 s | 0% |  |
32 | end | 1 | 0 s | 0% |  |
30 | retVal = retVal & eval(spr... | 1 | 0 s | 0% |  |
29 | if(retVal) | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Line number | Message |
1 | Input argument 'd' might be unused, although a later one is used. Consider replacing it by ~. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 50 |
Non-code lines (comments, blank lines) | 21 |
Code lines (lines that can run) | 29 |
Code lines that did run | 17 |
Code lines that did not run | 12 |
Coverage (did run/can run) | 58.62 % |
Function listing
time calls line
1 function retVal = issubfield(d, str1, str2, str3, str4)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function retVal = issubfield(d, str1, str2, str3, str4)
6 %
7 % i'm tired of typing these loops out.
8 %
9 % sjcm
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
3 12 numFields = nargin-1;
13
14 % i'm just writing it out.
3 15 retVal = 1;
16
3 17 switch numFields
3 18 case 2
0.01 2 19 retVal = retVal & eval(sprintf('isfield(d, ''%s'');', str1));
2 20 if(retVal)
2 21 retVal = retVal & eval(sprintf('isfield(d.%s, ''%s'');', str1, str2));
2 22 end
23
1 24 case 3
1 25 retVal = retVal & eval(sprintf('isfield(d, ''%s'');', str1));
1 26 if(retVal)
1 27 retVal = retVal & eval(sprintf('isfield(d.%s, ''%s'');', str1, str2));
1 28 end
1 29 if(retVal)
1 30 retVal = retVal & eval(sprintf('isfield(d.%s.%s, ''%s'');', str1, ...
31 str2, str3));
1 32 end
33
34 case 4
35 retVal = retVal & eval(sprintf('isfield(d, ''%s'');', str1));
36 if(retVal)
37 retVal = retVal & eval(sprintf('isfield(d.%s, ''%s'');', str1, str2));
38 end
39 if(retVal)
40 retVal = retVal & eval(sprintf('isfield(d.%s.%s, ''%s'');', str1, ...
41 str2, str3));
42 end
43 if(retVal)
44 retVal = retVal & eval(sprintf('isfield(d.%s.%s.%s, ''%s'');', str1, ...
45 str2, str3, str4));
46 end
47
48 end
49
3 50 return;
Other subfunctions in this file are not included in this listing.