This is a static copy of a profile report

Home

normest1>normapp (606 calls, 0.050 sec)
Generated 05-Nov-2014 07:52:56 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/matlab/matfun/normest1.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
normest1function606
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
253
y = feval(afun,flag,x,varargin...
6060.030 s60.0%
271
if y ~= 0 && y ~= 1
2020.010 s20.0%
265
if y ~= round(y) || y < 0
2020.010 s20.0%
274
end
2020 s0%
270
if isequal(flag,'real')
6060 s0%
All other lines  0 s0%
Totals  0.050 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
condest>condestfnested function6060.020 s40.0%
Self time (built-ins, overhead, etc.)  0.030 s60.0%
Totals  0.050 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function31
Non-code lines (comments, blank lines)11
Code lines (lines that can run)20
Code lines that did run11
Code lines that did not run9
Coverage (did run/can run)55.00 %
Function listing
   time   calls  line
244 function y = normapp(afun,flag,x,varargin)
245 %NORMAPP Call matrix operator and error gracefully.
246 % NORMAPP(AFUN,FLAG,X) calls matrix operator AFUN with flag
247 % FLAG and matrix X.
248 % NORMAPP(AFUN,FLAG,X,...) allows extra arguments to
249 % AFUN(FLAG,X,...).
250 % NORMAPP is designed for use by NORMEST1.
251
606 252 try
0.03 606 253 y = feval(afun,flag,x,varargin{:});
254 catch ME
255 error(message('MATLAB:normest1:Failure', func2str( afun ), ME.message));
256 end
257
606 258 if isequal(flag,'notransp') || isequal(flag,'transp')
202 259 if ~isequal(size(y),size(x))
260 error(message('MATLAB:normest1:MatrixSizeMismatchFlag', func2str( afun ), size( x, 1 ), size( x, 2 ), flag))
261 end
202 262 end
263
606 264 if isequal(flag,'dim')
0.01 202 265 if y ~= round(y) || y < 0
266 error(message('MATLAB:normest1:NegInt', func2str( afun ), flag))
267 end
202 268 end
269
606 270 if isequal(flag,'real')
0.01 202 271 if y ~= 0 && y ~= 1
272 error(message('MATLAB:normest1:Not0or1', func2str( afun ), flag))
273 end
202 274 end