Write a MATLAB program for 3-D multi plot with color



Code:
clear;
clc;
t = 0:pi/10:2*pi;
[X,Y,Z] = cylinder(4*cos(t));
subplot(2,2,1); mesh(X);
subplot(2,2,2); mesh(Y);
subplot(2,2,3); mesh(Z);
subplot(2,2,4); mesh(X,Y,Z);


Output:


No comments

Powered by Blogger.