image thumbnail


version (3.08 KB) by André
Draw molecules as balls and sticks based on an xyz matrix containing the positions of the atoms


Updated 09 Feb 2016

View License

molecule3D allows you to draw molecules based on a xyz matrix containing the atom positions in Ångström. You can choose between the different plotting styles "balls and sticks", "licorice structure" and "large orbitals". The function identifies bonds based on the distance between two atoms and adapts the color and geometry based on built-in preferences.

Cite As

André (2021). molecule3D (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: Molecule Viewer

Inspired: atom

Community Treasure Hunt

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

Start Hunting!