This is a static copy of a profile report

Home

ipermute (5 calls, 0.000 sec)
Generated 05-Aug-2011 13:01:32 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/elmat/ipermute.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
crossfunction5
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
24
a = permute(b,inverseorder);
50 s0%
23
inverseorder(order) = 1:numel(...
50 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function24
Non-code lines (comments, blank lines)22
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function a = ipermute(b,order)
2 %IPERMUTE Inverse permute array dimensions.
3 % A = IPERMUTE(B,ORDER) is the inverse of permute. IPERMUTE
4 % rearranges the dimensions of B so that PERMUTE(A,ORDER) will
5 % produce B. The array produced has the same values of A but the
6 % order of the subscripts needed to access any particular element
7 % are rearranged as specified by ORDER. For an N-D array A,
8 % numel(ORDER)>=ndims(A). All the elements of ORDER must be unique.
9 %
10 % PERMUTE and IPERMUTE are a generalization of transpose (.')
11 % for N-D arrays.
12 %
13 % Example
14 % a = rand(1,2,3,4);
15 % b = permute(a,[3 2 1 4]);
16 % c = ipermute(b,[3 2 1 4]); % a and c are equal
17 %
18 % See also PERMUTE,SIZE.
19
20 % Copyright 1984-2009 The MathWorks, Inc.
21 % $Revision: 1.15.4.2 $ $Date: 2009/01/30 14:42:15 $
22
5 23 inverseorder(order) = 1:numel(order); % Inverse permutation order
5 24 a = permute(b,inverseorder);