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,
See also "shellgui" in the File Exchange, which allows you to change the shape of the seashell dynamically.
Just as the sound of the sea flows through a seashell, the sound of love flows through the heart.
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.
updated link to book
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.