Question: MATLAB QUESTION (Calculus III Course) please provide me the matlab codes!! :) Thank you so much for your time and help! 1. Copy the following
MATLAB QUESTION (Calculus III Course)

please provide me the matlab codes!! :) Thank you so much for your time and help!
1. Copy the following into your script 1clear all 2syms x y 3 [X,Y] = meshgrid(-2*pi :. 1: 2 *pi,-2*pi : . 1: 2 *pi); 4 [A,B] = meshgrid(-2*pi: pi/4:2*pi,-2*pi: pi/4:2*pi); s Z-2*sin (X)-cos (Y); 6 W-2sin (A)-cos (B); [C, h contour (X,Y,Z); s clabel (C,h); hold on; [U,V] = gradient (W); quiver (A, B, U,V) o u hold off This plots the contour map of f(x,y) = 2 sin(x)-cos(y), with some of its gradient vector. Explain the following by using disp(") on Matlab, or by using notebook paper By looking at the contour plot, the vectors are pointing inward on the yellow circular regions, awhile pointing away on the purple ones. Without seeing this surface in 3-ID and using the meaning of the gradient, what should the surface look around these locations? Explain your reasoning 1. Copy the following into your script 1clear all 2syms x y 3 [X,Y] = meshgrid(-2*pi :. 1: 2 *pi,-2*pi : . 1: 2 *pi); 4 [A,B] = meshgrid(-2*pi: pi/4:2*pi,-2*pi: pi/4:2*pi); s Z-2*sin (X)-cos (Y); 6 W-2sin (A)-cos (B); [C, h contour (X,Y,Z); s clabel (C,h); hold on; [U,V] = gradient (W); quiver (A, B, U,V) o u hold off This plots the contour map of f(x,y) = 2 sin(x)-cos(y), with some of its gradient vector. Explain the following by using disp(") on Matlab, or by using notebook paper By looking at the contour plot, the vectors are pointing inward on the yellow circular regions, awhile pointing away on the purple ones. Without seeing this surface in 3-ID and using the meaning of the gradient, what should the surface look around these locations? Explain your reasoning
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
