Question: code using matlab 3. ( 30 points) Create vectors x and y from 5 to +5 with a spacing of 0.5. Use the mesh-grid function

code using matlab
code using matlab 3. ( 30 points) Create vectors x and y

3. ( 30 points) Create vectors x and y from 5 to +5 with a spacing of 0.5. Use the mesh-grid function to map x and y onto two new two-dimensional matrices called X and Y. Use your new matrices to calculate matrix Z, with magnitude Z=sin(X2+Y2) a) Use the mesh ploting function to create a three-dimensional plot of Z. Compare the results you obtain with a single input (Z) with those obtained with inputs for all three dimensions (X,Y,Z). Which is more meaningful? Use the more meaningful format for the remaining plots. b) Use the surf ploting function to create a three-dimensional plot of Z. c) Modify your surface plot with interpolated shading. Try using a specific colormap of your choice. d) Generate a contour plot of Z e) Generate a combination surface and contour plot of Z. f) Combine all four plots into a single figure with fours windows using subplot. g) BONUS ( 5 points) Create the 2d matrix Z from vectors x and y without using mesh-grid

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!