Matlab中 .' 的作用。

Syntax

B = A.'
B = transpose(A)
 

Description

B = A.' returns the nonconjugate transpose of A, that is, interchanges the row and column index for each element. If Acontains complex elements, then A.' does not affect the sign of the imaginary parts. For example, if A(3,2) is 1+2i and B = A.', then the element B(2,3) is also 1+2i.

B = transpose(A) is an alternate way to execute A.' and enables operator overloading for classes.

Create a matrix containing complex elements and compute its nonconjugate transpose. B contains the same elements as A, except the rows and columns are interchanged. The signs of the imaginary parts are unchanged.

A = [1 3 4-1i 2+2i; 0+1i 1-1i 5 6-1i]
A =
1.0000 + 0.0000i 3.0000 + 0.0000i 4.0000 - 1.0000i 2.0000 + 2.0000i
0.0000 + 1.0000i 1.0000 - 1.0000i 5.0000 + 0.0000i 6.0000 - 1.0000i
B = A.'
B =
1.0000 + 0.0000i 0.0000 + 1.0000i
3.0000 + 0.0000i 1.0000 - 1.0000i
4.0000 - 1.0000i 5.0000 + 0.0000i
2.0000 + 2.0000i 6.0000 - 1.0000i

Create a 2-by-2 matrix with complex elements.

A = [0-1i 2+1i;4+2i 0-2i]
A =
0.0000 - 1.0000i 2.0000 + 1.0000i
4.0000 + 2.0000i 0.0000 - 2.0000i

Find the conjugate transpose of A.

B = A'
B =
0.0000 + 1.0000i 4.0000 - 2.0000i
2.0000 - 1.0000i 0.0000 + 2.0000i

The result, B, contains the elements of A with the row and column indices interchanged. The sign of the imaginary part of each number is also switched.

上一篇:IIS发布后出现“如果在安装 32 位 Oracle 客户端组件的情况下以 64 位模式运行,将出现此问题”错误


下一篇:Java实现"命令式"简易文本编辑器原型