This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Send RasMol script commands to Molecule Viewer window


evalrasmolscript(FigureHandle, Command)


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

Any of the following:

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

  • Character vector or cell array of character vectors specifying RasMol script commands.

  • Character vector 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.


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.


  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')

Introduced in R2007a

Was this topic helpful?