Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions

Question

4-6 Is there a digital divide? If so, why does it matter?

Answered: 1 week ago