Cody

# Problem 42679. Can you reshape the matrix?

Solution 1989280

Submitted on 24 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   Fail
A = 1;row =1; y_correct = 1; assert(isequal(your_fcn_name(A,row),y_correct));

y = 0

Assertion failed.

2   Fail
A = [1;2;3;4];row = 1 y_correct = 1; assert(isequal(your_fcn_name(A,row),y_correct));

row = 1 y = 0

Assertion failed.

3   Fail
A = [1;2;3;4];row = 4 y_correct = 1; assert(isequal(your_fcn_name(A,row),y_correct));

row = 4 y = 0

Assertion failed.

4   Fail
A = [1;2;3;4];row = 2 y_correct = 1; assert(isequal(your_fcn_name(A,row),y_correct));

row = 2 y = 0

Assertion failed.

5   Fail
A = [1;2;3;4;5];row = 2 y_correct = 0; assert(isequal(your_fcn_name(A,row),y_correct));

row = 2 y = 1

Assertion failed.

### Community Treasure Hunt

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

Start Hunting!