Question: - Modify plotCos. If two inputs (f1,f2) are given, evaluate the following function - Z=sin(f1x)+sin(f2y) - 1)define x and y, use 20f1 and 20f2 as
- Modify plotCos. If two inputs (f1,f2) are given, evaluate the following function - Z=sin(f1x)+sin(f2y) - 1)define x and y, use 20f1 and 20f2 as the number of divisions between 02 for x and y, respectively (e.g.,linspace (0,2pi,20f1) ) - 2) use meshgrid to get the X and Y matrices. - 3) calcuate Z. - 4) in the top subplot, use imagesc, colormap, colorbar, view (2) to demonstrate Z matrix. - 5) in the bottom subplot, plot the 3-D surface of Z (surf, view (3))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
