SourceCodePoint
Thursday, 7 July 2016
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:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment