MATLAB: Design an x-y plot for the following where the values of x are from 0 to 20π with a spacing of π/100 plot Design an x-y plot for the following where the values of x are from 0 to 20π with a spacing of π/100. a. y = x.sin(x) b. z = x.cos(x) c. Convert the above 2D into a 3D plot using z as the third axis Best Answer try this..x=0:pi/100:20*pi;y=x.*sin(x);z=x.*cos(x);plot(x,y);plot(x,z);plot3(x,y,z);grid on; Related SolutionsMATLAB: 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) MATLAB: Need help on designing plot defining the variable is the first step : x=0:pi/100:20*pi;using element wise operation : y=x.*sin(x); z=x.*cos(x);Three dimensional graph is given by : plo3t(x,y,z) Related QuestionHow to plot cos(x) + cos(y) + cos(z) = 0How to plot multiple 3d on one graphHow to find a 2 π periodic solutionPlotting the given Trigonometric functionsX(t)=2+3*Π4(t)*sinc(t)Plot 2D graph
Best Answer