正在加载图片...
MATLAB Lecture 9 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu.cn >>X-8: 8: y=-8: 8: X, Y=meshgrid(x,y) >>x=8:8;y=8:8 >>Z=X^2/42-¥^2/5^2 >>z={x^242-y2/5^2] > plot(X,Y, 4) > grid on >>grid aA 1 ←日目 meshz()is the same as mesh(.)except that a"curtain"or reference plane is drawn beneath. This routine only works for surfaces defined on a rectangular grid. The matrices X andY define the axis limits onl - Figur ile Edit VIew Insert Tool: Desktop indow Halp D→母俄曾回长日国日回 mesh(.)is the same as mesh(. ) except that a contour plot is drawn beneath the mesh. Because CONTOUR does not handle irregularly spaced data, this routine only works for rfaces defined on a rectangular grid. The matrices or vectors X and y define the axis limits >>X,Y=meshgrid(-3: 1253) >>Z= peaks(x,Y) >> mesh(X, Y, Z) >>axis(-33-33-105])MATLAB Lecture 9  School of Mathematical Sciences Xiamen University  http://gdjpkc.xmu.edu.cn  Lec9­5  >> x=­8:8; y=­8:8; [X, Y]=meshgrid(x,y);  >> x=­8:8; y=­8:8; >> Z=[X.^2/4^2­Y.^2/5^2];  >> z=[x.^2/4^2­y.^2/5^2];  >> plot3(X,Y,Z) >> plot3(x,y, z) >> grid on  >> grid on  meshz(...) is the same as mesh(...) except that a "curtain" or reference plane is drawn beneath.  This routine only works for surfaces  defined on a rectangular grid. The matrices X  and Y  define the axis limits only.  >> meshz(X,Y,Z) meshc(...) is the same as mesh(...) except that a contour plot is drawn beneath the mesh.  Because CONTOUR does  not  handle irregularly spaced data,  this routine only works  for surfaces defined on a rectangular grid. The matrices or vectors X and Y define the axis limits  only.  >> [X,Y] = meshgrid(­3:.125:3);  >> Z = peaks(X,Y);  >> meshc(X,Y,Z);  >> axis([­3 3 ­3 3 ­10 5])
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有