Plot Superquadratic Surfaces

Versión 1.0.0.0 (502 KB) por DGM
This is a pair of functions for plotting general superellipsoids and supertoroids
491 descargas
Actualizado 9 jun 2018

Ver licencia

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)

Citar como

DGM (2024). Plot Superquadratic Surfaces (https://www.mathworks.com/matlabcentral/fileexchange/58413-plot-superquadratic-surfaces), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2009b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Surface and Mesh Plots en Help Center y MATLAB Answers.
Agradecimientos

Inspirado por: Controllable tight subplot

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

Made dependency note

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