Skip to Main Content Skip to Search
Product Documentation

evalrasmolscript - Send RasMol script commands to Molecule Viewer window

Syntax

evalrasmolscript(FigureHandle, Command)

Arguments

FigureHandleFigure handle to a molecule viewer returned by the molviewer function.
Command

Any of the following:

  • String specifying one or more RasMol script commands. Use a ; to separate commands.

  • Character array or cell array containing strings specifying RasMol script commands.

  • String specifying a file name or a path and file name of a text file containing Jmol script commands. If you specify only a file name, that file must be on the MATLAB search path or in the MATLAB Current Folder.

Description

evalrasmolscript(FigureHandle, Command) sends the RasMol script commands specified by Command to FigureHandle, the figure handle of a Molecule Viewer window created using the molviewer function.

Examples

  1. Use the molviewer function to create a figure handle to a Molecule Viewer window.

    FH = molviewer('2DHB')
  2. Use the evalrasmolscript function to send script commands to the molecule viewer that change the background to black and spin the molecule.

    evalrasmolscript(FH, 'background white; spin')

See Also

getpdb | molviewer | pdbread | pdbwrite

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS