Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the topography of a terrain stored in the file terrain.mat. Download the f ile from CANVAS and load it into MATLAB. The files contain
Consider the topography of a terrain stored in the file terrain.mat. Download the
f
ile from CANVAS and load it into MATLAB. The files contain the spatial coordinates of
the terrain in vectors x and y and the altitude in a dimensional matrix altitude. The
coordinates and the altitude are given in the unit of meters.
a d How many peaks ie local maxima are there on the terrain? Put the answer in
pa Include the peaks on the boundary of the terrain. Find the x and y coordinates and
the altitude of the peaks and put the answers in pb pc and pd respectively.
e h How many troughs ie local minima are there on the terrain? Put the answer
in pe Include the troughs on the boundary of the terrain. Find the x and y coordinates
and the altitude of the troughs and put the answers in pf pg and ph respectively.
i j Make figure to include the following items:
Use function surf to plot the terrain. Use shading interp to make the surface plot
smooth. Set view to put the plot in threedimensional view.
Use red filled circles to identify the peaks.
Use green filled circles to identify the troughs.
Extra credit points: An eagle initially standing at the tallest peak takes a direct
dive ie threedimensional straight line toward a prey which stands on the terrain at
x m and y m Use magenta filled circles to mark the projection of the
dive path on the terrain.
Set pi 'See figure Be sure to label the axes with correct units, provide a title and
include a legend box. If you attempt the extra credit, set pj 'See projection of dive
path'
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started