Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1:10;
y_correct = 3.4142;
assert(abs(h_mean(x)-y_correct)<0.0001)
ans =
3.4142
|
2 | Pass |
%%
x = 1:5;
y_correct = 2.1898;
assert(abs(h_mean(x)-y_correct)<0.0001)
ans =
2.1898
|
3 | Pass |
%%
x = 10;
y_correct = 10;
assert(abs(h_mean(x)-y_correct)<0.0001)
ans =
10
|
4 | Pass |
%%
x = 1:50;
y_correct = 11.1131;
assert(abs(h_mean(x)-y_correct)<0.0001)
ans =
11.1131
|
5 | Pass |
%%
x = 1:100;
y_correct = 19.2776;
assert(abs(h_mean(x)-y_correct)<0.0001)
ans =
19.2776
|
3892 Solvers
Is my wife right? Now with even more wrong husband
1241 Solvers
444 Solvers
Help the Patriots get to the Super Bowl
150 Solvers
Matlab Basics II - Max & Index of Max
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!