Cody

Problem 498. Find the Kronecker Tensor Product without using KRON

Solution 1973803

Submitted on 13 Oct 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x =1:3; y =2:4; y_correct = [2 3 4 4 6 8 6 9 12]; assert(isequal(mykron(x,y),y_correct))

z = 2 3 4 4 6 8 6 9 12

2   Fail
x = randi(10,3,3); y = 2:4; z_correct = kron(x,y); assert(isequal(mykron(x,y),z_correct))

z = 14 21 28 18 27 36 16 24 32 10 15 20 12 18 24 14 21 28 8 12 16 8 12 16 16 24 32

Assertion failed.