This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
287 | return; | 208 | 0 s | 0% |  |
253 | if (~isempty(ax)) | 208 | 0 s | 0% |  |
All other lines | | | 0.022 s | 100.0% |  |
Totals | | | 0.022 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Line number | Message |
259 | Use && instead of & as the AND operator in (scalar) conditional statements. |
265 | Use || instead of | as the OR operator in (scalar) conditional statements. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 37 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 25 |
Code lines that did run | 2 |
Code lines that did not run | 23 |
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.