sphere 函数开发单位球体的 x-、y- 和 z-coordinates,用于冲浪和网格。
用法
sphere // It generates a sphere consisting of 20-by-20 faces.
sphere(n) // It draws a surf plot of an n-by-n sphere in the current figure.
[X,Y, Z] = sphere(...) // It returns the coordinates of a sphere in three matrices that are (n+1)-by-(n+1) in size.示例
生成并绘制一个球体。
sphere(20)
axis('square')
or
[x,y,z]=sphere(20);
surf(x, y, z)
axis('square')输出:
相关用法
- MATLAB stem3()用法及代码示例
 - MATLAB slice()用法及代码示例
 - MATLAB surf()用法及代码示例
 - MATLAB stem()用法及代码示例
 - MATLAB surfc()用法及代码示例
 - MATLAB meshz()用法及代码示例
 - MATLAB contour()用法及代码示例
 - MATLAB loglog()用法及代码示例
 - MATLAB ribbon()用法及代码示例
 - MATLAB comet()用法及代码示例
 - MATLAB Stairs()用法及代码示例
 - MATLAB pcolor()用法及代码示例
 - MATLAB Bar()用法及代码示例
 - MATLAB contour3()用法及代码示例
 - MATLAB barh()用法及代码示例
 - MATLAB area()用法及代码示例
 - MATLAB waterfall()用法及代码示例
 - MATLAB quiver()用法及代码示例
 - MATLAB Semilogy()用法及代码示例
 - MATLAB plotyy()用法及代码示例
 
注:本文由纯净天空筛选整理自 MATLAB sphere()。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
