Question: Write a function [] = my3dRipplePlot(x,y,a)accepts inputs x (1 x n double array), y (1 x n double array), and a (1x1 double) and generates
Write a function [] = my3dRipplePlot(x,y,a)accepts inputs x (1 x n double array), y (1 x n double array), and a (1x1 double) and generates the shaded surface plot of the function:
Use matlab for this problem.
![Write a function [] = my3dRipplePlot(x,y,a)accepts inputs x (1 x n double](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f67e058c9fb_14866f67e04e2585.jpg)
Problem 2: 3-D Graphing Write a functionmy3dRipplePlot (x,y,a) accepts inputs x (1x n double array), y (1 xn double array), and a (1xl double) and generates the shaded surface plot of the function Z(x, y, a) sin(a(x' t y*))/a(x2 + y2) The function should generate the surface plots and label the x, y, and z, axis along with adding a title "Ripple Plot". The function should also set the range of the x-, y-, and z-axis so the plot only displays from the minimum value to the maximum value of the respective axes. Hint: Look up the built-in function surf to generate shaded surface plots TEST CASE 1 x 11nspace (-pi,pi) y-linspace (-pi,pi) my3dRipplePlot (x,y,2) Ripple Plot 0.8 0.6 0.4 0.2 -0.2 0.4 4 -2 Problem 2: 3-D Graphing Write a functionmy3dRipplePlot (x,y,a) accepts inputs x (1x n double array), y (1 xn double array), and a (1xl double) and generates the shaded surface plot of the function Z(x, y, a) sin(a(x' t y*))/a(x2 + y2) The function should generate the surface plots and label the x, y, and z, axis along with adding a title "Ripple Plot". The function should also set the range of the x-, y-, and z-axis so the plot only displays from the minimum value to the maximum value of the respective axes. Hint: Look up the built-in function surf to generate shaded surface plots TEST CASE 1 x 11nspace (-pi,pi) y-linspace (-pi,pi) my3dRipplePlot (x,y,2) Ripple Plot 0.8 0.6 0.4 0.2 -0.2 0.4 4 -2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
