Cody

Problem 498. Find the Kronecker Tensor Product without using KRON

The Kronecker Tensor Product is the result of multiplying all elements of a matrix with each of the elements of another matrix. The result is a large matrix bigger than either input matrix.

If X is m-by-n and Y is p-by-q, then mykron(X,Y) is m*p-by-n*q.

NOTE: n does not need to equal p as with normal matrix multiplication.

EX:

>> a=1:3;

>> b=2:4;

>> mykron(a,b)

ans = 2 3 4 4 6 8 6 9 12

Solution Stats

48.57% Correct | 51.43% Incorrect
Last solution submitted on Nov 26, 2015

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more