Question: ii. Use the meshgrid function to create a mesh with 40 equally spaced points from 5 to 5 in the ac direction and 40 equally


ii. Use the meshgrid function to create a mesh with 40 equally spaced points from 5 to 5 in the ac direction and 40 equally spaced points from 5 to 5 in the y direction. iii. Use surf (MATLAB) or plot_surface (python) to plot ay) versus :3 and y. iv. Notice that the plot does not look good with default settings. You should 0 Change the coloring of the plot using colormap('hot') in the lines after creating the plot in MATLAB or by adding the option cmap = cm.hot to the plot_surface command in python. If using python, be sure to have from matplotlib import cm at the top of your le. 0 Add a color bar that indicates what values the colors correspond to. 0 Set the viewing angle of the plot using view(30,30) in MATLAB or ax.view_init (30,30) in python.. o If using MATLAB, use shading interp to get rid of the mesh lines on the plot. 0 Label your 2:, y, and f(:L', y) axes. 0 Add a descriptive title to your plot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
