This is a static copy of a profile report

Home

scribe.legend.methods>getnpos (14 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:08 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/methods.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
scribe.legend.methods>update_userdatasubfunction14
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
594
case 'Best'
140.011 s100.0%
603
npos = 3;
10 s0%
602
case 'SouthWest'
10 s0%
600
case 'NorthEastOutside'
10 s0%
599
npos = 1;
40 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function20
Non-code lines (comments, blank lines)3
Code lines (lines that can run)17
Code lines that did run9
Code lines that did not run8
Coverage (did run/can run)52.94 %
Function listing
   time   calls  line
591 function npos = getnpos(h)
592
14 593 switch h.location
0.01 14 594 case 'Best'
9 595 npos = 0;
5 596 case 'NorthWest'
597 npos = 2;
5 598 case 'NorthEast'
4 599 npos = 1;
1 600 case 'NorthEastOutside'
601 npos = -1;
1 602 case 'SouthWest'
1 603 npos = 3;
604 case 'SouthEast'
605 npos = 4;
606 otherwise
607 fig = ancestor(h,'figure');
608 npos = hgconvertunits(fig,get(double(h),'Position'),get(h,'Units'),...
609 'points',get(h,'Parent'));
610 end

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