This is a static copy of a profile reportHome
wrap180 (6 calls, 0.142 sec)
Generated 05-Aug-2011 13:01:32 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/wrap180.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 |
8 | angle(angle<-180) = angle(a... | 6 | 0.077 s | 53.8% |  |
9 | angle(angle>180) = angle(a... | 6 | 0.066 s | 46.2% |  |
11 | return; | 6 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.142 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 11 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 3 |
Code lines that did run | 3 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function angle = wrap180(angle)
2 % function angle = wrap180(angle)
3 %
4 % Wraps angles in angle to the [-180, 180] degree range.
5 %
6
7
0.08 6 8 angle(angle<-180) = angle(angle<-180) + 360;
0.07 6 9 angle(angle>180) = angle(angle>180) - 360;
10
6 11 return;