This is a static copy of a profile reportHome
genfigAlpha>manaxis (96 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:47 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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
232 | return; | 96 | 0 s | 0% |  |
198 | if (~isempty(ax)) | 96 | 0 s | 0% |  |
All other lines | | | 0.011 s | 100.0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Line number | Message |
204 | Use && instead of & as the AND operator in (scalar) conditional statements. |
210 | 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
196 function manaxis(ax,y)
197
96 198 if (~isempty(ax))
199 ax4orig = ax(4);
200 ymax=max(y)*1.1;
201 if (max(y)>ax(4))
202 % if max y is larger than mean
203 ax(4)=ymax;
204 elseif (8*nanmean(y)<ax(4) & ax(3)>=0)
205 % if global mean (ax(4)) is much greater than the
206 % local y data, rescale
207 % but if ax(3)<0, that means we're looking at phase
208 % so don't do anything.
209 ax(4)=ymax;
210 elseif (isnan(ax(4)) | isnan(ax(3)))
211 if (isnan(ax(4)))
212 ax(4)=1;
213 end
214 if (isnan(ax(3)))
215 ax(3)=0;
216 end
217 end
218 % this is in place until mike comes up with a better way to do
219 % this - all the previous stuff at times resets the value of
220 % ax(4) so that it is below that of ax(3) - i don't feel like
221 % trying to figure out mike's logic, so here's a fix;
222 if(ax(3) >= ax(4))
223 if(ax4orig>ax(3))
224 ax(4) = ax4orig;
225 else
226 ax(4) = ax(3)+1;
227 end
228 end
229 axis(ax);
230 end
231
96 232 return;
Other subfunctions in this file are not included in this listing.