Cody

# Problem 1819. 07 - Common functions and indexing 4

Solution 2117768

Submitted on 4 Feb 2020 by Munira Farah
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
cMat = reshape(1:100,10,10); Ref = cMat(2:9,2:9); user = MyFunc(); assert(isequal(Ref,user))

n = 10 cSub = 12 22 32 42 52 62 72 82 13 23 33 43 53 63 73 83 14 24 34 44 54 64 74 84 15 25 35 45 55 65 75 85 16 26 36 46 56 66 76 86 17 27 37 47 57 67 77 87 18 28 38 48 58 68 78 88 19 29 39 49 59 69 79 89

2   Pass
Ref = reshape(1:100,10,10); [CSub Mat] = MyFunc(); assert(isequal(Ref,Mat))

n = 10 cSub = 12 22 32 42 52 62 72 82 13 23 33 43 53 63 73 83 14 24 34 44 54 64 74 84 15 25 35 45 55 65 75 85 16 26 36 46 56 66 76 86 17 27 37 47 57 67 77 87 18 28 38 48 58 68 78 88 19 29 39 49 59 69 79 89

### Community Treasure Hunt

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

Start Hunting!