This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
21 | y = x(end:-1:1,:); | 1078775 | 12.607 s | 37.3% |  |
18 | if ~ismatrix(x) | 1078775 | 4.256 s | 12.6% |  |
All other lines | | | 16.903 s | 50.1% |  |
Totals | | | 33.767 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 21 |
Non-code lines (comments, blank lines) | 17 |
Code lines (lines that can run) | 4 |
Code lines that did run | 2 |
Code lines that did not run | 2 |
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,:);