This is a static copy of a profile report

Home

genfig>manaxis (208 calls, 0.022 sec)
Generated 05-Aug-2011 13:03:45 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/plotting/genfig.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
genfig>plotfeatsubfunction48
genfig>plotflagsubfunction160
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
287
return;
2080 s0%
253
if (~isempty(ax))
2080 s0%
All other lines  0.022 s100.0%
Totals  0.022 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
259Use && instead of & as the AND operator in (scalar) conditional statements.
265Use || instead of | as the OR operator in (scalar) conditional statements.
Coverage results
[ Show coverage for parent directory ]
Total lines in function37
Non-code lines (comments, blank lines)12
Code lines (lines that can run)25
Code lines that did run2
Code lines that did not run23
Coverage (did run/can run)8.00 %
Function listing
   time   calls  line
251 function manaxis(ax,y)
252
208 253 if (~isempty(ax))
254 ax4orig = ax(4);
255 ymax=max(y)*1.1;
256 if (max(y)>ax(4))
257 % if max y is larger than mean
258 ax(4)=ymax;
259 elseif (8*nanmean(y)<ax(4) & ax(3)>=0)
260 % if global mean (ax(4)) is much greater than the
261 % local y data, rescale
262 % but if ax(3)<0, that means we're looking at phase
263 % so don't do anything.
264 ax(4)=ymax;
265 elseif (isnan(ax(4)) | isnan(ax(3)))
266 if (isnan(ax(4)))
267 ax(4)=1;
268 end
269 if (isnan(ax(3)))
270 ax(3)=0;
271 end
272 end
273 % this is in place until mike comes up with a better way to do
274 % this - all the previous stuff at times resets the value of
275 % ax(4) so that it is below that of ax(3) - i don't feel like
276 % trying to figure out mike's logic, so here's a fix;
277 if(ax(3) >= ax(4))
278 if(ax4orig>ax(3))
279 ax(4) = ax4orig;
280 else
281 ax(4) = ax(3)+1;
282 end
283 end
284 axis(ax);
285 end
286
208 287 return;

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