Cody

# Problem 3094. Hankelize a matrix

Solution 2121418

Submitted on 7 Feb 2020
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
A = 100; B = 100; assert(isequal(hankelize(A),B));

a = 1 b = 1 d = 100 ans = 100

2   Fail
A = [2,0 2,3 9,4]; B = [2,1 1,6 6,4]; assert(isequal(hankelize(A),B));

a = 3 b = 2 d = 2 1 6 4 ans = 2 1 1 6 6 4

Assertion failed.

3   Fail
A = [5 1 0 7 10 9]; B = [5 4 5 4 5 9]; assert(isequal(hankelize(A),B));

a = 2 b = 3 d = 5 4 5 9 ans = 5 4 5 4 5 9

Assertion failed.

4   Fail
A = [3 7 10 2 3 5 1 2 6 3 2 7]; B = [3 5 7 2 5 7 2 2 7 2 2 7]; assert(isequal(hankelize(A),B));

a = 3 b = 4 d = 3 5 7 2 2 7 ans = 3 5 7 2 5 7 2 2 7 2 2 7

Assertion failed.

5   Fail
A = [2 0 -1 10 -3 6 8 4 0 4 2 0 3 -1 -10 1 4 2]; B = [2 4 2 3 -3 3 4 2 3 -3 3 2 2 3 -3 3 2 2]; assert(isequal(hankelize(A),B));

a = 3 b = 6 d = 2 4 2 3 -3 3 2 2 ans = 2 4 2 3 -3 3 4 2 3 -3 3 2 2 3 -3 3 2 2

Assertion failed.