14 lines
261 B
Matlab
14 lines
261 B
Matlab
[x,y]=meshgrid(-8:0.5:8);
|
|
z=sin(sqrt(x.^2+y.^2));
|
|
subplot(2,2,1);
|
|
meshc(x,y,z);
|
|
title('meshc(x,y,z)');
|
|
subplot(2,2,2);
|
|
meshz(x,y,z);
|
|
title('meshz(x,y,z)');
|
|
subplot(2,2,3);
|
|
surfc(x,y,z);
|
|
title('surfc(x,y,z)');
|
|
subplot(2,2,4);
|
|
surfl(x,y,z);
|
|
title('surfl(x,y,z)'); |