Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 2;
C_correct = [1080,1080];
assert(isequal(matrix_rep(n),C_correct))
a =
1 2 3
4 5 6
7 8 9
b =
1 2 3 1 2 3
4 5 6 4 5 6
7 8 9 7 8 9
1 2 3 1 2 3
4 5 6 4 5 6
7 8 9 7 8 9
c =
180
C =
1080 1080
|
2 | Pass |
n = 5;
C_correct = [16875,16875];
assert(isequal(matrix_rep(n),C_correct))
a =
1 2 3
4 5 6
7 8 9
b =
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6 4 5 6 4 5 6
7 8 9 7 8 9 7 8 9 7 8 9 7 8 9
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6 4 5 6 4 5 6
7 8 9 7 8 9 7 8 9 7 8 9 7 8 9
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6 4 5 6 4 5 6
7 8 9 7 8 9 7 8 9 7 8 9 7 8 9
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6 4 5 6 4 5 6
7 8 9 7 8 9 7 8 9 7 8 9 7 8 9
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6 4 5 6 4 5 6
7 8 9 7 8 9 7 8 9 7 8 9 7 8 9
c =
1125
C =
16875 16875
|
329 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Getting the absolute index from a matrix
211 Solvers
302 Solvers
Given a square and a circle, please decide whether the square covers more area.
351 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!