This is a static copy of a profile report

Home

fliplr (1 call, 0.000 sec)
Generated 28-Feb-2011 19:18:38 using cpu time.
M-function in file /Applications/MATLAB_R2010a.app/toolbox/matlab/elmat/fliplr.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
legendcolorbarlayoutM-function1
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
20
y = x(:,end:-1:1);
10 s0%
17
if ndims(x)~=2 
10 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 function20
Non-code lines (comments, blank lines)16
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 = fliplr(x)
2 %FLIPLR Flip matrix in left/right direction.
3 % FLIPLR(X) returns X with row preserved and columns flipped
4 % in the left/right direction.
5 %
6 % X = 1 2 3 becomes 3 2 1
7 % 4 5 6 6 5 4
8 %
9 % Class support for input X:
10 % float: double, single
11 %
12 % See also FLIPUD, ROT90, FLIPDIM.
13
14 % Copyright 1984-2004 The MathWorks, Inc.
15 % $Revision: 5.9.4.3 $ $Date: 2004/07/05 17:01:14 $
16
1 17 if ndims(x)~=2
18 error('MATLAB:fliplr:SizeX', 'X must be a 2-D matrix.');
19 end
1 20 y = x(:,end:-1:1);