Mathematica中文论坛-非官方
标题:
豆粑粑 matlab 3Dcontourslice
[打印本页]
作者:
meatball1982
时间:
2017-7-13 16:54
标题:
豆粑粑 matlab 3Dcontourslice
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
fig_cont3D.png
(66.66 KB, 下载次数: 1522)
下载附件
2017-7-13 16:54 上传
欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/)
Powered by Discuz! X3.2