作业帮 > 综合 > 作业

matlab中kron对两个矩阵做的怎样的变换,不懂

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/12 06:36:22
matlab中kron对两个矩阵做的怎样的变换,不懂
matlab中kron对两个矩阵做的怎样的变换,不懂
KRON(X,Y) is the Kronecker tensor product of X and Y.
The result is a large matrix formed by taking all possible
products between the elements of X and those of Y. For
example, if X is 2 by 3, then KRON(X,Y) is

[ X(1,1)*Y X(1,2)*Y X(1,3)*Y
X(2,1)*Y X(2,2)*Y X(2,3)*Y ]
看下面的例子就很快明白了
x=[1 2;3 4]
x =
1 2
3 4
>> y=[1 0;0 1]
y =
1 0
0 1
>> kron(x,y)
ans =
1 0 2 0
0 1 0 2
3 0 4 0
0 3 0 4