matlab中的一个运算

来源:百度知道 编辑:UC知道 时间:2024/05/13 15:50:32
kron是什么运算啊?

Kron Kronecker张量积
K = kron(X,Y) returns the Kronecker tensor product of X and Y. The result is a large array formed by taking all possible products between the elements of X and those of Y. If X is m-by-n and Y is p-by-q, then kron(X,Y) is m*p-by-n*q.

函数 kron
??格式 C=kron (A,B) %A为m×n矩阵,B为p×q矩阵,则C为mp×nq矩阵。
??说明 A与B的张量积定义为: A B与B A均为mp×nq矩阵,但一般地A B B A。
??例1-28 求A B。
??>> A=[1 2;3 4];B=[1 2 3;4 5 6;7 8 9];
??>> C=kron(A,B)
??C =
?? 1 2 3 2 4 6
?? 4 5 6 8 10 12
?? 7 8 9 14 16 18
?? 3 6 9 4 8 12
?? 12 15 18 16 20 24
?? 21 24 27 28 32 36