This is a static copy of a profile report

Home

genfigAlpha>plotflag (48 calls, 0.481 sec)
Generated 05-Aug-2011 13:03:29 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/plotting/genfigAlpha.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
genfigAlphafunction48
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
137
h=plot(x{1,dataIndex},x{2,data...
480.164 s34.1%
158
h=plot(x{1, dataIndex}(f),x{2,...
960.120 s25.0%
142
plotdescription(txt,dataIndex)...
240.098 s20.5%
145
plotdescription(txt,dataIndex-...
240.066 s13.6%
174
hold off
480.022 s4.5%
All other lines  0.011 s2.3%
Totals  0.481 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
newplotfunction1440.175 s36.4%
genfigAlpha>plotdescriptionsubfunction480.164 s34.1%
lineseriesfunction1440.033 s6.8%
holdfunction960.022 s4.5%
genfigAlpha>manaxissubfunction960.011 s2.3%
Self time (built-ins, overhead, etc.)  0.077 s15.9%
Totals  0.481 s100% 
Code Analyzer results
Line numberMessage
127Input argument 'matrix' 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)17
Code lines (lines that can run)33
Code lines that did run31
Code lines that did not run2
Coverage (did run/can run)93.94 %
Function listing
   time   calls  line
127 function h=plotflag(x,allflags,ax,pageNum,plotNum,txt,num,matrix,plotsPerPage)
128
129 % plot data
48 130 if(pageNum==1)
16 131 dataIndex = plotNum;
32 132 else
32 133 dataIndex = sum(plotsPerPage(1:pageNum-1)) + plotNum;
32 134 end
135
136 % dataIndex = (pageNum-1)*plotsPerPage+plotNum;
0.16 48 137 h=plot(x{1,dataIndex},x{2,dataIndex}(:,1:2),'MarkerSize',10);
48 138 manaxis(ax,x{2,dataIndex}(:,1:2));
139
140
48 141 if(pageNum <= (num/2))
0.10 24 142 plotdescription(txt,dataIndex);
24 143 hold on
24 144 else
0.07 24 145 plotdescription(txt,dataIndex-(size(x,2)/2));
24 146 hold on
24 147 end
148
149
150 % check for manual axis settings
0.01 48 151 manaxis(ax,x{2,dataIndex}(:,1:2));
152
153 % plot old flags
48 154 if (~isempty(allflags{2, dataIndex}))
48 155 for mm=1:2
96 156 f = find(allflags{2, dataIndex}(:,mm));
96 157 if (~isempty(f))
0.12 96 158 h=plot(x{1, dataIndex}(f),x{2, dataIndex}(f,1:2),'g.','MarkerSize',10);
96 159 end
96 160 end
48 161 end
162
163 % plot new flags
48 164 if (~isempty(allflags{1, dataIndex}))
48 165 for mm=1:2
96 166 f = find(allflags{1, dataIndex}(:,mm));
96 167 if (~isempty(f))
168 h=plot(x{1, dataIndex}(f),x{2, dataIndex}(f,1:2),'r.','MarkerSize',10);
169 end
96 170 end
48 171 end
172
173
0.02 48 174 hold off
175
48 176 return;

Other subfunctions in this file are not included in this listing.