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应该 在一个特定的平面上。
于是,实现一下。

小华丽 。

  1. clear all
  2. clc

  3. [X,Y,Z] = peaks;

  4. [~,hContour] = contourf(X,Y,Z,20,'edgecolor','none');   
  5. hContour.ContourZLevel = -10; % set the contour's Z position
  6. view(44,30)
  7. colormap(jet)
复制代码



其中 ,有人说2014a之前 的实现方法 不相同 ,现在两个本子的matlab 都 是2015之后的,暂时无法验证。


fig_surf_cont_contourZLevel.png (48.57 KB, 下载次数: 1511)

fig_surf_cont_contourZLevel.png





欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2