Question: MATLAB QUESTION. Using the given function f(x,y) complete the following tasks. You need to create 2 files: 1 script and 1 user-defined function. Remember to

MATLAB QUESTION. Using the given function f(x,y) complete the following tasks. You need to create 2 files: 1 script and 1 user-defined function. Remember to comment your code.

f(x,y) = x4y-x3-20x2+6xy+20

A. User-defined function

i. the user defined function will have 3 inputs, the anonymous function, the value of y, and the range for the plot.

ii. plot the anonymous function

iii. Turn the grid on for the plot.

iv. Label the plot properly.

B. Script file.

i. Creat an anonymous function with x and y as variables.

ii. set y = y

iii. call the user defined function to plot the anonymous function from x = -3 to x = 3

iv. Use a function-of-function(fzero) to determine at least one of the roots for the anonymous function. Analyze the plot to determine your initial value or range.

v. Using a function-of-function determine the global minimum. Analyze the plot to get a general idea where it is.

(DONT FOR GET TO EXPLAIN CODE PLEASE)

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!