Plot Superquadratic Surfaces

版本 1.0.0.0 (501.6 KB) 作者: DGM
This is a pair of functions for plotting general superellipsoids and supertoroids
518.0 次下载
更新时间 2018/6/9

查看许可证

Much like SPHERE(), ELLIPSOID(), or SUPERQUAD(), these functions calculate and return the matrices required to plot a general superellipsoid or supertoroid using MESH() or SURF().
.
Unlike SUPERQUAD(), SUPERELLIPSOID() calculates the general form
with fully independent axis orders. i.e.:
.
((X-Cx) / Rx)^Px + ((Y-Cy) / Ry)^Py + ((Z-Cz) / Rz)^Pz = 1
.
For convenience, both functions accept parameters as vectors or as scalars with implicit expansion.
As with the built-in functions, the number of points can be set.
The default value for N is 50.
.
If no outputs are specified, a new surf plot will be created.
Display axes can be specified if the first argument is an axes handle.
.
A demo file is included (demo file uses subplot_tight from the FEX)

引用格式

DGM (2026). Plot Superquadratic Surfaces (https://ww2.mathworks.cn/matlabcentral/fileexchange/58413-plot-superquadratic-surfaces), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Surface and Mesh Plots 的更多信息
致谢

参考作品: Controllable tight subplot

版本 已发布 发行说明
1.0.0.0

Made dependency note

updated description layout
updated description
added FEX dependency and link to the archive