This is a static copy of a profile report

Home

wrap360 (6 calls, 0.219 sec)
Generated 05-Aug-2011 13:01:32 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/wrap360.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
apparentAzElfunction6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
8
angleMod = mod(angle, 360);
60.186 s85.0%
9
angleMod(angleMod == 0 & a...
60.033 s15.0%
All other lines  0.000 s0.0%
Totals  0.219 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function9
Non-code lines (comments, blank lines)7
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function angleMod = wrap360(angle)
2 % function angleMod = wrap360(angle)
3 %
4 % Wraps angles in angle to the [0, 360] degree range.
5 % If angle > 360, angle -> mod(angle,360)
6 % If angle == 0, angle -> 360
7 %
0.19 6 8 angleMod = mod(angle, 360);
0.03 6 9 angleMod(angleMod == 0 & angle > 0) = 360; % Catch the positive multiples of 360