Question: Solve using MATLAB Experiment 4.5 (a) Consider a surface z(x, y) defined as follows: sin (FR) R where R=/e? + y2, -35x, y53 Make use
Experiment 4.5 (a) Consider a surface z(x, y) defined as follows: sin (FR) R where R=/e? + y2, -35x, y53 Make use of the MATLAB functions sinc and mesh to generate a surface plot of z(x, y). Label the x-axis, y-axis, and z-axis with 'X', 'y', and 'z(x, y)', respectively. Export the figure as a JPEG file with filename 'Group_n_L4_5a', where n is the number assigned to your lab station. (Note: The sinc function is defined in Experiment 4.1.) (b) Repeat part (a), but add the following string to the argument list of the mesh function: 'EdgeColor', 'black' Use the filename 'Group_n_L4_5b' instead for the exported figure. (c) Repeat part (a), but use the 3-D plot function surf instead plus two additional instructions given below: >> colormap hsv, >> colorbar Use the filename 'Group_n_L4_5c' instead for the exported figure. (d) Repeat part (a), but use the 3-D plot function surf instead and include the following string in its argument list: 'FaceColor', 'red', 'EdgeColor', 'none' Examine the attribute of the figure. Add the following instructions sequentially afterward and observe their effects on the figure. >> camlight left lighting phong Use the filename 'Group_n_L4_5d' instead for the exported figure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
