Mathematica中文论坛-非官方
标题:
豆粑粑,matlab 设置 contour的z的位置。
[打印本页]
作者:
meatball1982
时间:
2016-11-7 14:11
标题:
豆粑粑,matlab 设置 contour的z的位置。
问题是我的一个帖子。希望将一个3D的平面 分别投影到xoy,xoz,yoz三个平面上。
xoy,和yoz分别实现了。
xoy本想通过 surf或是contourf在z=0上实现,有同学回复,说是z应该 在一个特定的平面上。
于是,实现一下。
小华丽 。
clear all
clc
[X,Y,Z] = peaks;
[~,hContour] = contourf(X,Y,Z,20,'edgecolor','none');
hContour.ContourZLevel = -10; % set the contour's Z position
view(44,30)
colormap(jet)
复制代码
其中 ,有人说2014a之前 的实现方法 不相同 ,现在两个本子的matlab 都 是2015之后的,暂时无法验证。
fig_surf_cont_contourZLevel.png
(48.57 KB, 下载次数: 1511)
下载附件
2016-11-7 14:11 上传
欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/)
Powered by Discuz! X3.2