Cody

Solution 1257501

Submitted on 25 Aug 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
n = 10; m=2; y_correct = 1814400; assert(isequal(your_fcn_name(m,n),y_correct))

Index exceeds matrix dimensions. Error in your_fcn_name (line 3) ans(m,n) Error in Test1 (line 4) assert(isequal(your_fcn_name(m,n),y_correct))

2   Fail
n = 4; m=3; y_correct = 4; assert(isequal(your_fcn_name(m,n),y_correct))

Index exceeds matrix dimensions. Error in your_fcn_name (line 3) ans(m,n) Error in Test2 (line 4) assert(isequal(your_fcn_name(m,n),y_correct))

3   Fail
n = 10; m=5; y_correct = 30240; assert(isequal(your_fcn_name(m,n),y_correct))

Index exceeds matrix dimensions. Error in your_fcn_name (line 3) ans(m,n) Error in Test3 (line 4) assert(isequal(your_fcn_name(m,n),y_correct))

Suggested Problems

More from this Author11