正在加载图片...
MATLAB Lecture 9 School of Mathematical Sciences Xiamen Univer http:/gdjpkc.xmueducn Eile Idit View Insert Tools Desktop Window Help 回各Q间日图 Surface plots Use surf and surfc to view mathematical functions over a rectangular region. surf and surfc create colored parametric surfaces specified by X, Y, and Z, with color specified by Z or C >>[X,Y=meshgrid(-8: 5: 8) >>R=sqrt(X. 2+Y. 2)+eps, %prevents the divide by zero O) /R; > surf(X,Y, 2) Eile Edit yiew Insert Tools Desktop windon Hely 日线回长日国回 ☆ Examples Displaying Nonuniform Data on a Surface This example evaluates the sinc function at random points within a specific range and then generates uniformly sampled data for display as a surface plot. The process invol ves these Lec9-6MATLAB Lecture 9  School of Mathematical Sciences Xiamen University  http://gdjpkc.xmu.edu.cn  Lec9­6  ¸ Surface Plots Use surf and surfc to view mathematical functions over a rectangular region. surf and surfc create colored parametric surfaces specified by X, Y, and Z, with color specified by Z or C.  >> [X,Y] = meshgrid(­8:.5:8);  >> R = sqrt(X.^2 + Y.^2) + eps; %prevents the divide by zero  >> Z = sin(R)./R;  >> surf(X,Y,Z) ² Examples  ¸ Displaying Nonuniform Data on a Surface This example evaluates the sinc function at random points within a specific range and then  generates uniformly sampled data for display as a surface plot. The process involves these tasks:
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有