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
Wrong Solution for Test Case 3. Value of Harmonic Mean and Geometric mean are not the value which should come. Please change
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.
It seems that the numerical error is too large and the answer I got is not identical to the correct answer.
The last test case has been improved.
Solution Comments
Show commentsProblem Recent Solvers57
Suggested Problems
-
Back to basics 3 - Temp Directory
363 Solvers
-
Convert a numerical matrix into a cell array of strings
1568 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
998 Solvers
-
Sum the 'edge' values of a matrix
328 Solvers
-
4117 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!