MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Find the altitude of a location on the earth, given latitude and longitude coordinates, above mean sea level.

Input___________Latitude and Longitude in decimal degrees.

Output_________ Altitude in meters.

Example:

Everest (27.988056°N 86.925278°E) ----> Height: 8816.663 m (from Google Maps)

20 correct solutions
27 incorrect solutions

Last solution submitted on Aug 15, 2014

2 Comments

Alfonso Nieto-Castanon
on 22 Mar 2013

the expected level of precision of the responses seems a bit unreasonable (<1 nanometer?), perhaps you could allow +-1% error in the returned altitude responses?

Dan
on 22 Mar 2013

Modified tolerance of the answers.

4 Comments