Cody

Solution 872351

Submitted on 12 Apr 2016
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 = [12 4 7; 5 1 4]; y_correct = [7 4 12; 4 1 5]; assert(isequal(your_fcn_name(x),y_correct))

m = 2 n = 3

Error using your_fcn_name (line 4) Subscript indices must either be real positive integers or logicals.

2   Fail
x = [12 4 7 8; 5 1 4 8]; y_correct = [8 4 7 12; 8 1 4 5]; assert(isequal(your_fcn_name(x),y_correct))

m = 2 n = 4

Error using your_fcn_name (line 4) Subscript indices must either be real positive integers or logicals.

Suggested Problems

More from this Author27