This is a static copy of a profile report

Home

ppual>get_index (2 calls, 0.000 sec)
Generated 05-Nov-2014 07:53:55 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/curvefit/splines/ppual.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
ppualfunction2
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
159
NaNx = find(index==0); index =...
20 s0%
158
[~, index] = histc(sites,[-inf...
20 s0%
157
if isempty(left)||left(1)~='l'
20 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function10
Non-code lines (comments, blank lines)3
Code lines (lines that can run)7
Code lines that did run3
Code lines that did not run4
Coverage (did run/can run)42.86 %
Function listing
   time   calls  line
154 function [index,NaNx] = get_index(mesh,sites,left)
155 %GET_INDEX appropriate mesh intervals for given ordered data sites
156
2 157 if isempty(left)||left(1)~='l'
2 158 [~, index] = histc(sites,[-inf,mesh,inf]);
2 159 NaNx = find(index==0); index = min(index,numel(mesh)+1);
160 else
161 [~, index] = histc(-sites,[-inf,-fliplr(mesh),inf]);
162 NaNx = find(index==0); index = max(numel(mesh)+2-index,1);
163 end