Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3];
w = [10 15 20];
y_correct = 100/3;
assert(isequal(weighted_average(x,w),y_correct))
y =
33.3333
|
2 | Pass |
x = [1 2 3];
w = [10 15 20];
y_correct = 100/3;
assert(isequal(weighted_average(x,w),y_correct))
y =
33.3333
|
5164 Solvers
Matrix indexing with two vectors of indices
400 Solvers
Permute diagonal and antidiagonal
179 Solvers
Sum the 'edge' values of a matrix
153 Solvers
Find Out sum of principal diagonal element of given matrix
151 Solvers