.'* 运算符在 Matlab 中是什么意思?

What does the .'* operator mean in Matlab?

.'* 运算符在 Matlab 中是什么意思?

例如:

n1=0:30;
n2=1:30;
x1=sin((pi/4)*n1);
x2=cos((pi/7)*n2);
x1.'*x2

我知道 .* 表示逐元素乘法,- x1 也是如此。'*x2 表示与它共轭的逐元素乘法?

那是 2 个运算符。第一个.'transpose of a matrix. Usually you may see it as ' alone, but that gives the complex conjugate transpose of a matrix, that for real numbers is the transpose. The second operator is the matrix multiplication operator*.

基本上,您的代码会创建 2 个不同的向量,然后计算它们之间所有可能的乘法排列。