This is a static copy of a profile report

Home

flipud (1078775 calls, 33.767 sec)
Generated 05-Nov-2014 07:53:20 using cpu time.
function in file /usr1/opt/matlab/7.13/toolbox/matlab/elmat/flipud.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
intlinefunction404
ml_getlineptfunction1078370
eff_PCAfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
21
y = x(end:-1:1,:);
107877512.607 s37.3%
18
if ~ismatrix(x)
10787754.256 s12.6%
All other lines  16.903 s50.1%
Totals  33.767 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function21
Non-code lines (comments, blank lines)17
Code lines (lines that can run)4
Code lines that did run2
Code lines that did not run2
Coverage (did run/can run)50.00 %
Function listing
   time   calls  line
1 function y = flipud(x)
2 %FLIPUD Flip matrix in up/down direction.
3 % FLIPUD(X) returns X with columns preserved and rows flipped
4 % in the up/down direction. For example,
5 %
6 % X = 1 4 becomes 3 6
7 % 2 5 2 5
8 % 3 6 1 4
9 %
10 % Class support for input X:
11 % float: double, single
12 %
13 % See also FLIPLR, ROT90, FLIPDIM.
14
15 % Copyright 1984-2010 The MathWorks, Inc.
16 % $Revision: 5.9.4.5 $ $Date: 2010/08/23 23:08:00 $
17
4.26 1078775 18 if ~ismatrix(x)
19 error(message('MATLAB:flipud:SizeX'));
20 end
12.61 1078775 21 y = x(end:-1:1,:);