Editor's Note: This was a File Exchange Pick of the Week
A short MATLAB function that displays a pretty Florida seashell, using a 3D parametrically defined surface. Appears on the front and back cover of the "MATLAB Primer", Davis and Sigmon, Chapman & Hall/CRC Press,
https://www.mathworks.com/academia/books/matlab-primer-davis.html
See also "shellgui" in the File Exchange, which allows you to change the shape of the seashell dynamically.
1.0.0.1 | updated link to book |
|
1.0.0.0 | Re-uploaded function version of the file (9/23 version was uploaded but file remained unchanged on MATLAB Central). |
|
Changed from a script to a function. Added extensive comments. Added a "spin" feature (try seashell('spin')). |
||
added link to the book. |
||
shellgui file uploaded, which does the same thing as this file but with a GUI interface. |
Create scripts with code, output, and formatted text in a single executable document.
Just as the sound of the sea flows through a seashell, the sound of love flows through the heart.
beautiful seashell
:)
Author's comments: for an explanation of the a, b, c, and n parameters, see "shellgui", also in the MATLAB Central Gallery.
An interesting and beautiful illustration. It would be nice to include some explanation of what exactly parameters n, a, b and c are controling.
Cool.