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))
a =
10 30 60
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))
a =
10 30 60
y =
33.3333
|
1421 Solvers
Project Euler: Problem 7, Nth prime
521 Solvers
Make one big string out of two smaller strings
1148 Solvers
Try 1.5.4: Celsius to Fahrenheit
609 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!