kron
Kronecker matrix product.
Syntax
K = kron(A,B)
K = kron(A,B,...)
Inputs
- A
 - First argument.
 - B
 - Second argument.
 
Outputs
- K
 - The Kronecker product.
 
Example
Vector inputs.
K = kron([1,2,3;4,5,6], [10,20;30,40]);
      K = [Matrix] 4 x 6
 10   20   20   40   30   60
 30   40   60   80   90  120
 40   80   50  100   60  120
120  160  150  200  180  240
    Comments
For matrices A and B with respective dimensions m by n and p by q, kron(A,B) is an mp by nq matrix consisting of an m by n array of blocks of size p by q. For indices (i,j), each block (i,j) = a(i,j)*B.
With more than two arguments, kron is applied associatively from left to right.