pagectranspose
Syntax
Description
Examples
Transpose Pages of Complex N-D Array
Create a 3-D complex array A
, and then use pagectranspose
to find the complex conjugate transpose of each page of the array.
r = repelem(1:3,3,1); A = cat(3,r,2*r,3*r); A = A + 1i
A = A(:,:,1) = 1.0000 + 1.0000i 2.0000 + 1.0000i 3.0000 + 1.0000i 1.0000 + 1.0000i 2.0000 + 1.0000i 3.0000 + 1.0000i 1.0000 + 1.0000i 2.0000 + 1.0000i 3.0000 + 1.0000i A(:,:,2) = 2.0000 + 1.0000i 4.0000 + 1.0000i 6.0000 + 1.0000i 2.0000 + 1.0000i 4.0000 + 1.0000i 6.0000 + 1.0000i 2.0000 + 1.0000i 4.0000 + 1.0000i 6.0000 + 1.0000i A(:,:,3) = 3.0000 + 1.0000i 6.0000 + 1.0000i 9.0000 + 1.0000i 3.0000 + 1.0000i 6.0000 + 1.0000i 9.0000 + 1.0000i 3.0000 + 1.0000i 6.0000 + 1.0000i 9.0000 + 1.0000i
B = pagectranspose(A)
B = B(:,:,1) = 1.0000 - 1.0000i 1.0000 - 1.0000i 1.0000 - 1.0000i 2.0000 - 1.0000i 2.0000 - 1.0000i 2.0000 - 1.0000i 3.0000 - 1.0000i 3.0000 - 1.0000i 3.0000 - 1.0000i B(:,:,2) = 2.0000 - 1.0000i 2.0000 - 1.0000i 2.0000 - 1.0000i 4.0000 - 1.0000i 4.0000 - 1.0000i 4.0000 - 1.0000i 6.0000 - 1.0000i 6.0000 - 1.0000i 6.0000 - 1.0000i B(:,:,3) = 3.0000 - 1.0000i 3.0000 - 1.0000i 3.0000 - 1.0000i 6.0000 - 1.0000i 6.0000 - 1.0000i 6.0000 - 1.0000i 9.0000 - 1.0000i 9.0000 - 1.0000i 9.0000 - 1.0000i
Input Arguments
X
— Input array
multidimensional array
Input array, specified as a multidimensional array.
Data Types: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| logical
| char
| string
| struct
| cell
| categorical
| datetime
| duration
| calendarDuration
Complex Number Support: Yes
More About
Array Pages
Page-wise functions like pagectranspose
operate on 2-D
matrices that have been arranged into a multidimensional array. For example, with a 3-D
array the elements in the third dimension of the array are commonly called
pages because they stack on top of each other like pages in a
book. Each page is a matrix that gets operated on by the function.
You can also assemble a collection of 2-D matrices into a higher dimensional array, like a 4-D
or 5-D array, and in these cases pagectranspose
still treats the
fundamental unit of the array as a 2-D matrix that gets operated on, such as
X(:,:,i,j,k,l)
.
The cat
function is useful for assembling a
collection of matrices into a multidimensional array, and the zeros
function is useful for preallocating a multidimensional array.
Tips
The page-wise complex conjugate transpose is equivalent to permuting the first two dimensions of the array with
permute(conj(X),[2 1 3:ndims(X)])
.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Code generation does not support cell arrays for this function.
Thread-Based Environment
Run code in the background using MATLAB® backgroundPool
or accelerate code with Parallel Computing Toolbox™ ThreadPool
.
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
GPU Arrays
Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Distributed Arrays
Partition large arrays across the combined memory of your cluster using Parallel Computing Toolbox™.
This function fully supports distributed arrays. For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).
Version History
Introduced in R2020b
Abrir ejemplo
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)