craters
Version 1.0.1 (3,49 MB) von
Adam Danz
Generates a cratered spherical surface such as a moon or asteroid.
craters() produces a cratered spherical surface according to optional user inputs that control
- sphere size and location
- number and distribution of craters
- crater radii and depths
By default, crater radii are selected randomly from a bounded gamma distribution. Crater depths are a function of crater radii so larger craters create larger impacts. Crater profiles are defined by a logistic function.
craters outputs the 3D coordinates to the surface object, a table of crater information, and handles to graphics objects.
See the example file for a survey of capabilities of the craters function.
Animation of craters object rotation
Written in Matlab R2021b.
Zitieren als
Adam Danz (2026). craters (https://de.mathworks.com/matlabcentral/fileexchange/101649-craters), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2021b
Kompatibel mit R2020b und späteren Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.1 | Updated URL to file exchange page. |
||
| 1.0.0 |
