Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Functions

transpose

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Transposes a 1D or 2D matrix.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

y = transpose(x);

If x is an N x M matrix, then y will be M x N, where the entries are y(j,i)=x(i,j).

 

Example

Simple example of how to transpose a 2D matrix.

?A = [1,2,3;4,5,6];

?AT = transpose(A); # transpose of A

 

result:

1  2  3  

4  5  6  

result: 

1  4  

2  5  

3  6  

 

See Also

Functions, ctranspose, reshape, flip, permute, size

Copyright Lumerical Inc. | Privacy | Site Map