This is a static copy of a profile reportHome
legendcolorbarlayout>location_to_xy_index (130 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:18 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/legendcolorbarlayout.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 |
1082 | ind = vals.(locstr); | 130 | 0.011 s | 100.0% |  |
1081 | end | 1 | 0 s | 0% |  |
1080 | vals.manual = [0,0]; | 1 | 0 s | 0% |  |
1079 | vals.none = [0,0]; | 1 | 0 s | 0% |  |
1078 | vals.BestOutside = [0,0]; | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 24 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 23 |
Code lines that did run | 23 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1059 function ind = location_to_xy_index(locstr)
130 1060 persistent vals;
130 1061 if isempty(vals)
1 1062 vals.NorthOutside = [3,1];
1 1063 vals.NorthWestOutside = [1,2];
1 1064 vals.NorthWest = [2,2];
1 1065 vals.North = [3,2];
1 1066 vals.NorthEast = [4,2];
1 1067 vals.NorthEastOutside = [5,2];
1 1068 vals.WestOutside = [1,3];
1 1069 vals.West = [2,3];
1 1070 vals.East = [4,3];
1 1071 vals.EastOutside = [5,3];
1 1072 vals.SouthWestOutside = [1,4];
1 1073 vals.SouthWest = [2,4];
1 1074 vals.South = [3,4];
1 1075 vals.SouthEast = [4,4];
1 1076 vals.SouthEastOutside = [5,4];
1 1077 vals.SouthOutside = [3,5];
1 1078 vals.BestOutside = [0,0];
1 1079 vals.none = [0,0];
1 1080 vals.manual = [0,0];
1 1081 end
0.01 130 1082 ind = vals.(locstr);
Other subfunctions in this file are not included in this listing.