Question: 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?'
 Water ripple: 2D optimization The following two-dimensional function represents the height

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!