Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 2;
y_correct = [1 2; 2 4];
assert(isequal(timestables(x),y_correct))
hor =
1 2
ver =
1
2
m =
1 2
2 4
|
2 | Pass |
x = 3;
y_correct = [1 2 3; 2 4 6; 3 6 9];
assert(isequal(timestables(x),y_correct))
hor =
1 2 3
ver =
1
2
3
m =
1 2 3
2 4 6
3 6 9
|
3 | Pass |
x = 5;
y_correct = [1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 16 20; 5 10 15 20 25];
assert(isequal(timestables(x),y_correct))
hor =
1 2 3 4 5
ver =
1
2
3
4
5
m =
1 2 3 4 5
2 4 6 8 10
3 6 9 12 15
4 8 12 16 20
5 10 15 20 25
|
Find common elements in matrix rows
809 Solvers
Check if number exists in vector
2313 Solvers
177 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
230 Solvers
Predicting life and death of a memory-less light bulb
244 Solvers