Cody

# Problem 42679. Can you reshape the matrix?

Solution 1603983

Submitted on 8 Aug 2018 by Martin C.
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 = 1;row =1; y_correct = 1; assert(isequal(your_fcn_name(A,row),y_correct));

y = 1 y = logical 1

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

row = 1 y = 4 y = logical 1

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

row = 4 y = 4 y = logical 1

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

row = 2 y = 4 y = logical 1

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

row = 2 y = 5 y = logical 0

### Community Treasure Hunt

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

Start Hunting!