Question: Using MATLAB Write an m-file to evaluate the following function of two variables : : sin(x ', y) over the range of 0Sx 3 rad
Using MATLAB
Write an m-file to evaluate the following function of two variables : : sin(x ', y) over the range of 0Sx 3 rad and 0sys3 rad using 100 points in each direction. Use meshgrid.m to generate x and y matrices, with which you can calculate the matrix z with a single MATLAB command. Plot the resulting z matrix as a surface plot and then as a contour plot. For the surface plot, use a viewing angle of AZ-42 and EL-72 and change the shading property to interpolate. Be sure to include a title and axis labels
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
