@sym: kron (a, b) ¶@sym: kron (a, b, …, c) ¶Kronecker tensor product of two or more symbolic matrices.
Examples:
syms x
kron(eye(2)*x, [1, -1; -1, 1])
⇒ ans = (sym 4×4 matrix)
⎡x -x 0 0 ⎤
⎢ ⎥
⎢-x x 0 0 ⎥
⎢ ⎥
⎢0 0 x -x⎥
⎢ ⎥
⎣0 0 -x x ⎦
syms x y
kron([1, 2], [x, y; y, x])
⇒ ans = (sym 2×4 matrix)
⎡x y 2⋅x 2⋅y⎤
⎢ ⎥
⎣y x 2⋅y 2⋅x⎦
kron([1, 2], [x, y; y, x], [1; 7])
⇒ ans = (sym 4×4 matrix)
⎡ x y 2⋅x 2⋅y ⎤
⎢ ⎥
⎢7⋅x 7⋅y 14⋅x 14⋅y⎥
⎢ ⎥
⎢ y x 2⋅y 2⋅x ⎥
⎢ ⎥
⎣7⋅y 7⋅x 14⋅y 14⋅x⎦
Package: symbolic