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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site