MATLAB: Plotting two variable equation sin wavetwo variable equation waveform=sin(3x)-y^3 where x and y vary from -2pi to 2pi.Should look similar to but different from sine wave Best Answer This will generate a 3D surface plotx = -5:0.1:5; % specify the range of x and yy = -5:0.1:5;[X, Y] = meshgrid(x, y);wave = sin(3*X) - Y.^3;surf(X, Y, wave); Related SolutionsMATLAB: Plot the simple sin wave with amplitude y = 3*sin(x); MATLAB: Help to plot a Surface plot of: z = y sin x – x cos y [X,Y] = meshgrid(-5:.2:5);Z = Y .* sin(X) - X .* cos(Y);surf(X,Y,Z) Related QuestionBuilding a surface plot3D surface (sine wave)How to generate plot of a functionHow to combine the using of meshgrid and surface
Best Answer