Question: Construct an function handle stored under the name f that has has its value the function f ( x , y ) = e 3
Construct an function handle stored under the name f that has has its value the
function fx y e
xy cosxy Be sure that your function handle can
accept vectors as input, so that the call fvw on a vectors v v v vmT
and w w w wmT produces the vector fv w fv w fvm wmT
b Using v
and w
compute s fv w
c Compute t fw v
d Create a row vector x x x x where x consists of
equallyspaced points on the interval with x and x Set
y x
e Create matrices X and Y that encode the coordinates for a grid of
equallyspaced points over the square using your vectors x and y
This can be done with MATLABs meshgrid command.
f Construct the matrix Z fX Y Note: If you want to look at Z as a surface,
you can use the surfXYZ command. This is not required for the problem.
g Set z to be a vector where the first entries of z are the entries in the
first column of Z the second entries of z are the entries in the second column
of Z and so on This is ca
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
