Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Water ripple: 2 D optimization The following two - dimensional function represents the height of a water ripple in centimeters as a function of its

Water ripple: 2D optimization
The following two-dimensional function represents the height of a water ripple in centimeters as a function of its x and y position in meters away from its point of origin after 5 seconds.
f(x,y)=sin((x-10)2+(y+2)22)(x-10)2+(y+2)22
A. Use an anonymous function for f(x,y) and MATLAB's mesh function. Create a 3D plot of the ripple from -6x18 meters, and -3x9 meters.
B. Use an initial guess of [61], find the location of the maximum ripple height using MATLAB's built-in function fminsearch. Use fprintf to display the results with 6 digits to the right of the decimal point (e.g. 'The
maximum height, x.[units], occurs at x=x.[units] and y=x.[units].')
C. Using MATLAB's plot3 and hold commands, plot a red asterisk at the maximum in the plot from part a).
D. Repeat parts b and c with an initial guess of -2] and a black asterisk.
E. In text answer the question: 'What changes between the two different initial guesses and why?'
image text in transcribed

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

10. Describe the relationship between communication and power.

Answered: 1 week ago