Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Minimum Across 2D Field Ultimately, your task is to use the fminsearch function to determine the minimum of the tollowing function: f(a, y)2y -

image text in transcribed
2. Minimum Across 2D Field Ultimately, your task is to use the fminsearch function to determine the minimum of the tollowing function: f(a, y)2y - 2.75ry- 1751.52 En route to locating the minimum value across the 2D field, first use graphical visual- ization to locate the minimum value. The process will require you to store the value of the function f(x, y) in a 2D-array named z. Next, you must use two nested for loops to walk through all of the columns of the array (locations defined by vector x) as well as all of the rows of the array (locations defined by vector y). Define the x and y vectors using the commands x-linspace (-4,4,100) and y-linspace (-4,4,100) (a) What are the dimensions of x, y, and z? HINT: consider using the size com mand (b) Plot f(x, y) (or z in this case) using the contourf command. Similarly, plot f(x,y) (or z in this case) using the mesh command. Next, define f(x, y) using an anonymous function (or function stored in an m file). Using the function handle, employ the fminsearch command to: (c) Determine the minimum value. (d) Determine the location of the minimum value

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions