The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 408 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
The distance to the horizon increases as you climb a mountain (or a hill). The expression
                                           ![]()
Where
d = distance to the horizon
r = radius of the earth
h = height of the hill
can be used to calculate that distance. The distance depends on how high the hill is and on the radius of the earth (or another planetary body).
(a) Create a function M-fi le called distance to fi nd the distance to the horizon. Your function should accept two vector inputs—radius and height—and should return the distance to the horizon. Don’t forget
that you’ll need to use meshgrid because your inputs are vectors.
(b) Create a MATLAB® program that uses your distance function to find the distance in miles to the horizon, both on the earth and on Mars, for hills from 0 to 10,000 feet. Remember to use consistent units in your calculations. Note that
• Earth’s diameter = 7926 miles
• Mars’ diameter = 4217 miles
Report your results in a table. Each column should represent a different planet, and each row a different hill height.
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------