Cody

Solution 1260724

Submitted on 2 Sep 2017
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   Fail
x =[1 2 5 6; 3 4 7 8; 9 10 13 14; 11 12 15 16] y_correct =[1 5 9 13 2 3 4 6 7 8 10 11 12 14 15 16]; assert(isequal(your_fcn_name(x),y_correct))

x = 1 2 5 6 3 4 7 8 9 10 13 14 11 12 15 16

Assertion failed.

2   Fail
x =1; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

Error using ones Size inputs must be integers. Error in your_fcn_name (line 2) j=kron(ones(1,size(x,1)/2),1:2:size(x,2)); Error in Test2 (line 3) assert(isequal(your_fcn_name(x),y_correct))

3   Fail
x =[1 2 5 6 1 6; 3 4 7 8 2 3; 9 10 13 14 6 8; 11 12 15 16 5 7] y_correct =[1 5 1 9 13 6 2 3 4 6 7 8 6 2 3 10 11 12 14 15 16 8 5 7]; assert(isequal(your_fcn_name(x),y_correct))

x = 1 2 5 6 1 6 3 4 7 8 2 3 9 10 13 14 6 8 11 12 15 16 5 7

Assertion failed.

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!