% LE VOLUME EN GRILLAGE

% Ce script crée une sphère de rayon A centrée en (B;C;D):

 

A = 1;

B = 0;

C = 0;

D = 0;

 

[t,p] = meshgrid(0:pi/25:2*pi,-pi/2:pi/25:pi/2);

x = A*cos(p).*cos(t);

y = A*cos(p).*sin(t);

z = A*sin(p);

mesh(x+B,y+C,z+D) % La fonction "mesh" crée un volume en grillage

 

colormap jet

shading interp

axis image

 

% NOTE: La fonction "mesh" accepte la propriété 'LineWidth'.