Version (3.08 KB) by André
Draw molecules as balls and sticks based on an xyz matrix containing the positions of the atoms
Updated 9 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é (2024). molecule3D (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Atomic, Molecular & Optical in Help Center and MATLAB Answers

Inspired by: Molecule Viewer

Inspired: Catalogue_molecule3D.m Stand-Alone conversion, atom

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Minor changes, changed color scheme to CPK coloring

Minor changes, changed color scheme to CPK coloring