This is a static copy of a profile reportHome
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 Name | Function Type | Calls |
cross | function | 5 |
Lines where the most time was spent
No measurable time spent in this functionLine Number | Code | Calls | Total Time | % Time | Time Plot |
24 | a = permute(b,inverseorder); | 5 | 0 s | 0% |  |
23 | inverseorder(order) = 1:numel(... | 5 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0 s | 0% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 24 |
Non-code lines (comments, blank lines) | 22 |
Code lines (lines that can run) | 2 |
Code lines that did run | 2 |
Code lines that did not run | 0 |
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);