Cody

# Problem 44842. Double the next!

Solution 2064594

Submitted on 20 Dec 2019 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
m = 3; n = 2; y_correct = [1 2; 4 8; 16 32]; assert(isequal(your_fcn_name(m,n),y_correct))

v = 0 1 2 3 4 5 y = 1 4 16 2 8 32 y = 1 2 4 8 16 32

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

v = 0 y = 1 y = 1

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

v = 0 1 2 3 4 y = 1 2 4 8 16 y = 1 2 4 8 16

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

v = 0 1 2 y = 1 2 4 y = 1 2 4

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))

v = 0 1 2 3 4 5 6 7 y = 1 4 16 64 2 8 32 128 y = 1 2 4 8 16 32 64 128

### Community Treasure Hunt

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

Start Hunting!