This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
normest1 | function | 720 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
253 | y = feval(afun,flag,x,varargin... | 720 | 0.044 s | 100.0% |  |
284 | end | 240 | 0 s | 0% |  |
278 | if y ~= 0 && y ~= 1 | 240 | 0 s | 0% |  |
277 | if isequal(flag,'real') | 720 | 0 s | 0% |  |
275 | end | 240 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.044 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
condest>condestf | nested function | 720 | 0.033 s | 75.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.011 s | 25.0% |  |
Totals | | | 0.044 s | 100% | |
Code Analyzer results
Line number | Message |
264 | ERROR takes SPRINTF-like arguments directly. |
273 | ERROR takes SPRINTF-like arguments directly. |
282 | ERROR takes SPRINTF-like arguments directly. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 41 |
Non-code lines (comments, blank lines) | 18 |
Code lines (lines that can run) | 23 |
Code lines that did run | 11 |
Code lines that did not run | 12 |
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