Problem 42801. means
Calculate the arithmetic, the geometric and the harmonic mean of a given vector (with positive elements) and return them in a vector!
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Thomas Bischoff
on 20 Jun 2016
Hello Rathin Joshi.
I checked numbers and I think they are correct. The geometric mean should be (10!)^(1/10) and the harmonic mean should be 10/10th harmonic number.
Yingcong Zhou
on 23 Dec 2017
It seems that the numerical error is too large and the answer I got is not identical to the correct answer.
goc3
on 24 Jul 2018
The last test case has been improved.
Solution Comments
Show commentsProblem Recent Solvers62
Suggested Problems
-
Which values occur exactly three times?
5143 Solvers
-
1406 Solvers
-
Create a square matrix of multiples
482 Solvers
-
350 Solvers
-
526 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!