Documentation

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.

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:

  • Character vector or cell array of character vectors specifying RasMol script commands. If there are multiple commands, use a ; to separate them.

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

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

collapse all

Display a molecule in the Molecule Viewer app and save the figure handle to the app window.

f = molviewer('2DHB');
f.HandleVisibility = 'off';
1722 script command tokens
(C) 2009 Jmol Development
Jmol Version: 12.0.45  2011-05-21 18:09
java.vendor: Oracle Corporation
java.version: 1.7.0_60
os.name: Linux
memory: 42.3/113.8
processors available: 40
useCommandThread: false
JmolConsole is initializing

Use evalrasmolscript to send script commands to the molecule viewer that change the background to black and spin the molecule.

evalrasmolscript(f,'background white; spin')

Introduced in R2007a

Was this topic helpful?