This is a static copy of a profile reportHome
flipud (8 calls, 0.000 sec)
Generated 18-Mar-2011 23:32:10 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/elmat/flipud.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
21 | y = x(end:-1:1,:); | 8 | 0 s | 0% |  |
18 | if ndims(x)~=2 | 8 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenM-Lint results
No M-Lint 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-2004 The MathWorks, Inc.
16 % $Revision: 5.9.4.3 $ $Date: 2004/07/05 17:01:15 $
17
8 18 if ndims(x)~=2
19 error('MATLAB:flipud:SizeX', 'X must be a 2-D matrix.');
20 end
8 21 y = x(end:-1:1,:);