File Exchange

image thumbnail

A pretty seashell

version 1.0.0.1 (2.15 KB) by Tim Davis
a short MATLAB function that displays a pretty seashell

3 Downloads

Updated 10 Oct 2018

View License

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.

Comments and Ratings (6)

Lamar Cole

Just as the sound of the sea flows through a seashell, the sound of love flows through the heart.

shelly beach

beautiful seashell
:)

Marco Boaron

Tim Davis

Author's comments: for an explanation of the a, b, c, and n parameters, see "shellgui", also in the MATLAB Central Gallery.

Sergei Koptenko

An interesting and beautiful illustration. It would be nice to include some explanation of what exactly parameters n, a, b and c are controling.

Brian Keats

Cool.

Updates

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.

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: MATLAB Primer, 7th Edition, CRC Press, 2005

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor