Cody

Solution 1842649

Submitted on 8 Jun 2019 by KUOCHAN HSU
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
ref = reshape(1:100,10,10); user = MatrixFunc(); assert(isequal(user,ref))

k = 0 k = 1 cMat = 1 k = 2 cMat = 1 2 k = 3 cMat = 1 2 3 k = 4 cMat = 1 2 3 4 k = 5 cMat = 1 2 3 4 5 k = 6 cMat = 1 2 3 4 5 6 k = 7 cMat = 1 2 3 4 5 6 7 k = 8 cMat = 1 2 3 4 5 6 7 8 k = 9 cMat = 1 2 3 4 5 6 7 8 9 k = 10 cMat = 1 2 3 4 5 6 7 8 9 10 k = 11 cMat = 1 11 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 k = 12 cMat = 1 11 2 12 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 k = 13 cMat = 1 11 2 12 3 13 4 0 5 0 6 0 7 0 8 0 9 0 10 0 k = 14 cMat = 1 11 2 12 3 13 4 14 5 0 6 0 7 0 8 0 9 0 10 0 k = 15 cMat = 1 11 2 12 3 13 4 14 5 15 6 0 7 0 8 0 9 0 10 0 k = 16 cMat = 1 11 2 12 3 13 4 14 5 15 6 16 7 0 8 0 9 0 10 0 k = 17 cMat = 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 0 9 0 10 0 k = 18 cMat = 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 0 10 0 k = 19 cMat = 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 0 k = 20 cMat = 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 19 10 20 k = 21 cMat = 1 11 21 2 12 0 3 13 0 4 14 0 5 15 0 6 16 0 7 17 0 8 18 0 9 19 0 10 20 0 k = 22 cMat = 1 11 21 2 12 22 3 13 0 4 14 0 5 15 0 6 16 0 7 17 0 8 18 0 9 19 0 10 20 0 k = 23 cMat = 1 11 21 2 12 22 3 13 23 4 14 0 5 15 0 6 16 0 7 17 0 8 18 0 9 19 0 10 20 0 k = 24 cMat = 1 11 21 2 12 22 3 13 23 4 14 24 5 15 0 6 16 0 7 17 0 8 18 0 9 19 0 10 20 0 k = 25 cMat = 1 11 21 2 12 22 3 13 23 4 14 24 5 15 25 6 16 0 7 17 0 8 18 0 9 19 0 10 20 0 k = 26 cMat = 1 11 21 2 12 22 3 13 23 4 14 24 5 15 25 6 16 26 7 17 0 8 18 0 9 19 0 10 20 0 k = 27 cMat = 1 11 21 2 12 22 3 13 23 4 14 24 5 15 25 6 16 26 7 17 27 8 18 0 9 19 0 10 20 0 k = 28 cMat = 1 11 21 2 12 22 3 13 23 4 14 24 5 15 25 6 16 26 7 17 27 8 18 28 9 19 0 10 20 0 k = 29 cMat = 1 11 21 2 12 22 3 13 23 4 14 24 5 15 25 6 16 26 7 17 27 8 18 28 9 19 29 10 20 0 k = 30 cMat = 1 11 21 2 12 22 3 13 23 4 14 24 5 15 25 6 16 26 7 17 27 8 18 28 9 19 29 10 20 30 k = 31 cMat = 1 11 21 31 2 12 22 0 3 13 23 0 4 14 24 0 5 15 25 0 6 16 26 0 7 17 27 0 8 18 28 0 9 19 29 0 10 20 30 0 k = 32 cMat = 1 11 21 31 2 12 22 32 3 13 23 0 4 14 24 0 5 15 25 0 6 16 26 0 7 17 27 0 8 18 28 0 9 19 29 0 10 20 30 0 k = 33 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 0 5 15 25 0 6 16 26 0 7 17 27 0 8 18 28 0 9 19 29 0 10 20 30 0 k = 34 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 0 6 16 26 0 7 17 27 0 8 18 28 0 9 19 29 0 10 20 30 0 k = 35 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 35 6 16 26 0 7 17 27 0 8 18 28 0 9 19 29 0 10 20 30 0 k = 36 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 35 6 16 26 36 7 17 27 0 8 18 28 0 9 19 29 0 10 20 30 0 k = 37 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 35 6 16 26 36 7 17 27 37 8 18 28 0 9 19 29 0 10 20 30 0 k = 38 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 35 6 16 26 36 7 17 27 37 8 18 28 38 9 19 29 0 10 20 30 0 k = 39 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 35 6 16 26 36 7 17 27 37 8 18 28 38 9 19 29 39 10 20 30 0 k = 40 cMat = 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 35 6 16 26 36 7 17 27 37 8 18 28 38 9 19 29 39 10 20 30 40 k = 41 cMat = 1 11 21 31 41 2 12 22 32 0 3 13 23 33 0 4 14 24 34 0 5 15 25 35 0 6 16 26 36 0 7 17 27 37 0 8 18 28 38 0 9 19 29 39 0 10 20 30 40 0 k = 42 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 0 4 14 24 34 0 5 15 25 35 0 6 16 26 36 0 7 17 27 37 0 8 18 28 38 0 9 19 29 39 0 10 20 30 40 0 k = 43 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 43 4 14 24 34 0 5 15 25 35 0 6 16 26 36 0 7 17 27 37 0 8 18 28 38 0 9 19 29 39 0 10 20 30 40 0 k = 44 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 43 4 14 24 34 44 5 15 25 35 0 6 16 26 36 0 7 17 27 37 0 8 18 28 38 0 9 19 29 39 0 10 20 30 40 0 k = 45 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 43 4 14 24 34 44 5 15 25 35 45 6 16 26 36 0 7 17 27 37 0 8 18 28 38 0 9 19 29 39 0 10 20 30 40 0 k = 46 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 43 4 14 24 34 44 5 15 25 35 45 6 16 26 36 46 7 17 27 37 0 8 18 28 38 0 9 19 29 39 0 10 20 30 40 0 k = 47 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 43 4 14 24 34 44 5 15 25 35 45 6 16 26 36 46 7 17 27 37 47 8 18 28 38 0 9 19 29 39 0 10 20 30 40 0 k = 48 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 43 4 14 24 34 44 5 15 25 35 45 6 16 26 36 46 7 17 27 37 47 8 18 28 38 48 9 19 29 39 0 10 20 30 40 0 k = 49 cMat = 1 11 21 31 41 2 12 22 32 42 3 13 23 33 43 4 14 24 34 44 5 15 25 35 45 6 16 26 36 46 7 17 27 37 47 8 18 28 38 48...