This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
scribe/private/get_legendable_childrenM-function2
scribe.legend.methods>set_contextmenuM-subfunction6
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
21
y = x(end:-1:1,:);
80 s0%
18
if ndims(x)~=2 
80 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
M-Lint results
No M-Lint 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-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,:);