| 复制代码clear,clc,close all
t = (0:100)'/50*pi;
% h=figure(1)
x = cos(t) * [1 2 2 1 1];
y = sin(t) * [1 2 2 1 1];
z = repmat([1 1 -1 -1 1]*.6, numel(t), 1);
[xi,yi,zi] = meshgrid(-2:.1:2);
v = exp(- cos(xi).^2 - cos(yi).^2 - cos(zi).^2);
surf(x, z, y, 'FaceColor', [1 1 1]*.7, 'EdgeColor', 'none'), hold on
plot3(x, z, y, 'k', 'Linewidth', 1), camlight head
set(contourslice(xi, yi, zi, v, x, z, y), 'EdgeColor', 'k'), axis image off
h=gcf;
fig_na='./fig_cont3D';
fun_work_li_035_myfig_out(h,fig_na,3)
http://www.ilovematlab.cn/forum. ... p;page=1#pid3244961比我NB
 
 
 
   
 
 
 |