FUNCTION REFERENCE

kron

Kronecker product of two arrays.

Kronecker product of two arrays.

Syntax

kron(A, B)

Replaces each element of A with that element times B. Output has size (rows(A)*rows(B))-by-(cols(A)*cols(B)). Real, complex and logical inputs are accepted; logical inputs produce double output. The result must fit the matrix and statement size limits. With a sparse operand the result is sparse (real double values only).

Example

kron([1 2],[1;1])   % [1 2; 1 2]

Differences from MATLAB: N-D arrays are not supported; sparse operands must be real.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.