This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
noiseWrapperfunction1
gainWrapperfunction1
calculateGainsfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
19
retVal = retVal & eval(spr...
20.011 s100.0%
50
return;
30 s0%
32
end    
10 s0%
30
retVal = retVal & eval(spr...
10 s0%
29
if(retVal)
10 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
1Input 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 function50
Non-code lines (comments, blank lines)21
Code lines (lines that can run)29
Code lines that did run17
Code lines that did not run12
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.