English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

MATLAB Matrix Transpose

The transpose operation can switch the rows and columns in the matrix. It is represented by a single quote (').

Online Examples

Create a script file using the following code-

a = [ 10 12 23 ; 14 8 6; 27 8 9]
b = a'

When running the file, it displays the following result-

a =
      10    12    23
      14     8     6
      27     8     9
b =
      10    14    27
      12     8     8
      23     6     9