Sie verfolgen jetzt diese Einreichung
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
Anmerkung des Herausgebers: This file was selected as MATLAB Central Pick of the Week
This is a 3D extension of leafpile.m and includes to ability to add physics (currently the HW assignment for my Differential Equations students). As is, the code just lets gravity act alone on the leaves.
This code takes advantage of Hamid Naderi Yeganeh's wonderful parametric curves that describe oak and maple leaf shapes [1] and MATLAB's built-in Autumn colormap.
After using some randomization on the colors chosen within the colormap, the leaf coordinates, roll, pitch, and yaw, we have ourrselves a nice little leaf pile generator! Why wait until Mid October when you can experience those beautiful few weeks all year round within the comfort of your MATLAB console?
This code will be updated with some realistic drag laws after my students' HW assignment is due. I'd also like to eventually incorporate some slider controls like Sean de Wolski did for the 2D leafpile code last year.
[1] Hamid Naderi Yeganeh, Scientific American, March 16 2017, https://blogs.scientificamerican.com/guest-blog/how-to-draw-with-math/
Zitieren als
Nathaniel Barlow (2026). leafpile3D (https://de.mathworks.com/matlabcentral/fileexchange/79727-leafpile3d), MATLAB Central File Exchange. Abgerufen .
Quellenangaben
Inspiriert: leafpile3D -- minor mods
Allgemeine Informationen
- Version 1.0.1 (2,25 KB)
Kompatibilität der MATLAB-Version
- Kompatibel mit allen Versionen
Plattform-Kompatibilität
- Windows
- macOS
- Linux
| Version | Veröffentlicht | Versionshinweise | Action |
|---|---|---|---|
| 1.0.1 | Changed z so that it is oriented positive down, to correspond with force balances that would lead to the differential equation solution (to be replaced by better drag models by users) on line 39. |
||
| 1.0.0 |
