This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
normest1 | function | 606 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
253 | y = feval(afun,flag,x,varargin... | 606 | 0.030 s | 60.0% |  |
271 | if y ~= 0 && y ~= 1 | 202 | 0.010 s | 20.0% |  |
265 | if y ~= round(y) || y < 0 | 202 | 0.010 s | 20.0% |  |
274 | end | 202 | 0 s | 0% |  |
270 | if isequal(flag,'real') | 606 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.050 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
condest>condestf | nested function | 606 | 0.020 s | 40.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.030 s | 60.0% |  |
Totals | | | 0.050 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 31 |
Non-code lines (comments, blank lines) | 11 |
Code lines (lines that can run) | 20 |
Code lines that did run | 11 |
Code lines that did not run | 9 |
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