Main Content

Molecule Viewer

Display and manipulate 3-D molecule structure

Description

TheMolecule Viewerapp lets you display and manipulate 3-D molecular structures.

You can:

  • Import structural information directly from the Protein Data Bank (PDB) database or other supported files.

  • Measure distances and dihedral angles.

  • Display molecular surfaces, such as van der Waals or solvent-accessible surfaces.

  • Select different visualization and color schemes to display a molecule, such as the ribbon or backbone representation.

  • Run RasMol script commands from within the app.

Open the Molecule Viewer App

  • MATLAB®Toolstrip: On theAppstab, underComputational Biology, click the app icon.

  • MATLAB command prompt: Entermolviewer.

Examples

expand all

Display the 3-D structure of an acetylsalicylic acid (aspirin) molecule.

f = molviewer('aspirin.mol');

Figure Molecule Viewer: ASPIRIN contains objects of type uimenu, uitoolbar, hgjavacomponent.

f.HandleVisibility ='off';

Programmatic Use

expand all

molvieweropens the Molecule Viewer app.

molviewer(file)reads the structural information fromfileand shows the 3-D molecular structure in the Molecule Viewer app.

molviewer(pdbID)retrieves the structural data for a protein from the PDB database using itspdbIDand shows the 3-D molecular structure in the Molecule Viewer app.

Version History

Introduced in R2007a

expand all

Not recommended starting in R2020b

See Also

Functions