USING MATLAB Create a 3D bar surface area and mesh plot usin
USING MATLAB Create a 3D bar, surface area, and mesh plot using;
x=[-5:0.2:3];
y=[-6:0.2:2];
z=y.*exp(-x.^2-y.^2);
Plot all three plots in three different windows. Add colorbar and shade the plots using color of your choice.
Solution
x=-5:0.2:3;
 y=-6:0.2:2;
 z=y.*exp(-x.^2-y.^2);
 figure(1)
 bar3(x,y,z);
 xlabel(\'x\'),ylabel(\'y\'),zlabel(\'z\');
 figure(2)
 surf([x;y;z]);
 xlabel(\'x\'),ylabel(\'y\'),zlabel(\'z\');
 figure(3)
 mesh([x;y;z]);
 xlabel(\'x\'),ylabel(\'y\'),zlabel(\'z\');
![USING MATLAB Create a 3D bar, surface area, and mesh plot using; x=[-5:0.2:3]; y=[-6:0.2:2]; z=y.*exp(-x.^2-y.^2); Plot all three plots in three different windo USING MATLAB Create a 3D bar, surface area, and mesh plot using; x=[-5:0.2:3]; y=[-6:0.2:2]; z=y.*exp(-x.^2-y.^2); Plot all three plots in three different windo](/WebImages/16/using-matlab-create-a-3d-bar-surface-area-and-mesh-plot-usin-1029315-1761533267-0.webp)
