کد متلب (MATLAB) : مثال شماره 11
کدهای متلب :
clear all
close all
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)
close all
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)
نتیجه :

منبع کدها :
کتاب MATLAB 7 Getting Started Guide - صفحه 115 از فایل pdf کتاب
دسته بندی انواع رسم شکل در متلب
نظرات 0 0 0