File Exchange

image thumbnail


version (183 KB) by Alexander Erlich
vibratingString displays an animation of four vibrating strings with oscillation modes.


Updated 17 Jan 2010

View Version History

View License

An example call would be >>vibratingString(2).

The program is supposed to present an idea on what different vibrational patterns of (closed) strings look like. In string theory, the different vibrational patterns represent different particles, e.g. electrons, neutrons, photons or gravitons.

The program was originally inspired by an illustration in Becker / Becker / Schwarz: String Theory and M-Theory - A Modern Introduction. Cambridge, 2007, p. 3.

A detailed PDF documentation is also included. It explains the most important variables used in the program and illustrates some of them with a sketch.

Cite As

Alexander Erlich (2021). vibratingString (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Vicente Tiznado

Thanks for this


Hi folks,
I'm looking for a code to calculate the frequency of composite shell under C-F boundary condition.
Would you please help me to find such a thing. my email is:


Hi folks,
I'm looking for a code to simulate the elastic wave propagation in an rod or plate or frame,...!
Would you please help me to find such a thing. my email is:


Rather neat!

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!