Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [2,3,4;4,5,6];
y_correct = 4;
assert(isequal(matrix_median(x),y_correct))
x =
2
4
3
5
4
6
ans =
4
|
2 | Pass |
x = int8(1:4);
y_correct = 3;
assert(isequal(matrix_median(x),y_correct))
x =
4×1 int8 column vector
1
2
3
4
ans =
int8
3
|
3 | Pass |
x = [2 6 8 10 NaN 14 NaN 18 NaN];
y_correct = 9;
assert(isequal(matrix_median(x),y_correct))
x =
2
6
8
10
NaN
14
NaN
18
NaN
ans =
9
|
Arrange Vector in descending order
4075 Solvers
309 Solvers
452 Solvers
Sum of diagonals elements of a matrix
166 Solvers
Sum of odd numbers in a matrix
311 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!