Question: Exercise 2 - 2 Plot the surface of a function f ( x , y ) = 2 x 2 - 3 x - 3

Exercise 2-2
Plot the surface of a function f(x,y)=2x2-3x-3y2+5y, when -2x2 and -2y2. Use a step size of 0.1 for the x and y values. Find the rate of
change of the function in the direction of the x- and y-axis at the point (0.5,-1.5) by using the central difference method (h=eps2).(eps is the unit of precision
that Matlab can go to with floating point numbers e.g. a very small number: 2-52.
Save the rates of changes in the corresponding variables d-x and dy
Useful commands:
meshgrid
surf
Note! It can be very useful to create an anonymous function of the function formula.
Exercise 2 - 2 Plot the surface of a function f (

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 Programming Questions!