Cody

Solution 1717118

Submitted on 30 Jan 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
m = 3; n = 2; y_correct = [1 2; 4 8; 16 32]; assert(isequal(your_fcn_name(m,n),y_correct))

2   Pass
m = 1; n = 1; y_correct = [1]; assert(isequal(your_fcn_name(m,n),y_correct))

3   Pass
m = 1; n = 5; y_correct = [1 2 4 8 16]; assert(isequal(your_fcn_name(m,n),y_correct))

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

Error using Test4 (line 3) Dimensions of arrays being concatenated are not consistent.

5   Pass
m = 4; n = 2; y_correct = [1 2; 4 8; 16 32; 64 128]; assert(isequal(your_fcn_name(m,n),y_correct))