- Matlab-Matrix Tutorial
- Matlab-Matrix - Home
- Matlab-Matrix - Introduction
- Matlab-Matrix - Environment Setup
- Matlab-Matrix - Create Matrix
- Matlab-Matrix - Working with Matrices
- Matlab-Matrix - Multiplication
- Matlab-Matrix - Addition
- Matlab-Matrix - Subtraction
- Matlab-Matrix - Matrix Determinant
- Matlab-Matrix - Inverse
- Matlab-Matrix - Trace
- Matlab-Matrix - Rank
- Matlab-Matrix - Transpose
- Matlab-Matrix - Deletion Row & Coloumn
- Matlab-Matrix Useful Resources
- Matlab Matrix - Quick Guide
- Matlab Matrix - Useful Resources
- Matlab Matrix - Discussion
Matlab-矩阵 - 转置
转置运算交换矩阵中的行和列。它由单引号(') 表示。
例子
考虑以下示例 -
a = [ 10 12 23 ; 14 8 6; 27 8 9] b = a'
输出
MATLAB 中的执行给出以下输出 -
>> a = [ 10 12 23 ; 14 8 6; 27 8 9] b = a' a = 10 12 23 14 8 6 27 8 9 b = 10 14 27 12 8 8 23 6 9 >>
转置()函数
您还可以使用 transpose() 函数来获取矩阵的转置。
例子
考虑以下使用 transpose() 函数的示例 -
a = [ 10 12 23 ; 14 8 6; 27 8 9] b = transpose(a)
输出
您将得到以下输出 -
>> a = [ 10 12 23 ; 14 8 6; 27 8 9] b = transpose(a) a = 10 12 23 14 8 6 27 8 9 b = 10 14 27 12 8 8 23 6 9 >>