This is a static copy of a profile report

Home

normest1>normapp (720 calls, 0.044 sec)
Generated 05-Aug-2011 13:03:50 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/matfun/normest1.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
normest1function720
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
253
y = feval(afun,flag,x,varargin...
7200.044 s100.0%
284
end
2400 s0%
278
if y ~= 0 && y ~= 1
2400 s0%
277
if isequal(flag,'real')
7200 s0%
275
end
2400 s0%
All other lines  0 s0%
Totals  0.044 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
condest>condestfnested function7200.033 s75.0%
Self time (built-ins, overhead, etc.)  0.011 s25.0%
Totals  0.044 s100% 
Code Analyzer results
Line numberMessage
264ERROR takes SPRINTF-like arguments directly.
273ERROR takes SPRINTF-like arguments directly.
282ERROR takes SPRINTF-like arguments directly.
Coverage results
[ Show coverage for parent directory ]
Total lines in function41
Non-code lines (comments, blank lines)18
Code lines (lines that can run)23
Code lines that did run11
Code lines that did not run12
Coverage (did run/can run)47.83 %
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
720 252 try
0.04 720 253 y = feval(afun,flag,x,varargin{:});
254 catch ME
255 error(message('MATLAB:normest1:Failure', func2str( afun ), ME.message));
256 end
257
720 258 if isequal(flag,'notransp') || isequal(flag,'transp')
240 259 if ~isequal(size(y),size(x))
260 es = sprintf(['function %s\n' ...
261 'must return a %d-by-%d matrix ' ...
262 'when flag == ''%s'''], func2str(afun), ...
263 size(x,1), size(x,2), flag);
264 error('MATLAB:normest1:MatrixSizeMismatchFlag', es)
265 end
240 266 end
267
720 268 if isequal(flag,'dim')
240 269 if y ~= round(y) || y < 0
270 es = sprintf(['function %s\n' ...
271 'must return a nonnegative integer ' ...
272 'when flag == ''%s'''], func2str(afun), flag);
273 error('MATLAB:normest1:NegInt', es)
274 end
240 275 end
276
720 277 if isequal(flag,'real')
240 278 if y ~= 0 && y ~= 1
279 es = sprintf(['function %s\n' ...
280 'must return 0 or 1 ' ...
281 'when flag == ''%s'''], func2str(afun), flag);
282 error('MATLAB:normest1:Not0or1', es)
283 end
240 284 end