Answered step by step
Verified Expert Solution
Link Copied!

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 2-dimensional matrix altitude. The
coordinates and the altitude are given in the unit of meters.
(a- d) How many peaks (i.e., local maxima) are there on the terrain? Put the answer in
p5a. 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 p5b, p5c and p5d, respectively.
(e- h) How many troughs (i.e., local minima) are there on the terrain? Put the answer
in p5e. 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 p5f, p5g and p5h, respectively.
(i, j) Make figure 1 to include the following items:
Use function surf to plot the terrain. Use shading interp to make the surface plot
smooth. Set view(3) to put the plot in three-dimensional view.
Use red filled circles to identify the peaks.
Use green filled circles to identify the troughs.
Extra credit (5 points): An eagle initially standing at the tallest peak takes a direct
dive (i.e, three-dimensional straight line) toward a prey which stands on the terrain at
x =-800 m and y =-600 m. Use magenta filled circles to mark the projection of the
dive path on the terrain.
Set p5i = 'See figure 1'. Be sure to label the axes with correct units, provide a title and
include a legend box. If you attempt the extra credit, set p5j = 'See projection of dive
path'

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

Students also viewed these Databases questions

Question

Please help me evaluate this integral. 8 2 2 v - v

Answered: 1 week ago

Question

What role does communication play in developing personal identity?

Answered: 1 week ago