Difference between revisions of "Molplot.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Plots a stick representation of a molecule from Cartesian coordinates supplied. Coordinates must be in Angstroms. Syntax: molplot(xyz,conmatrix) Pa...")
 
Line 1: Line 1:
−
Plots a stick representation of a molecule from Cartesian coordinates
+
{{DISPLAYTITLE:molplot.m}} __NOTOC__
−
supplied. Coordinates must be in Angstroms. Syntax:
+
Plots a stick representation of a molecule from Cartesian coordinates supplied.
  
−
                          molplot(xyz,conmatrix)
+
==Syntax==
  
−
Parameters:
+
    molplot(xyz,conmatrix)
  
−
            xyz - Cartesian coordinates, as Nx3 matrix
+
==Arguments==
  
−
      conmatrix - NxN connectivity matrix indicating chemical
+
    xyz      - Cartesian coordinates, as Nx3 matrix, in
−
                  bonds that should be drawn as sticks
+
                Angstroms
 +
 
 +
    conmatrix - NxN connectivity matrix indicating chemical
 +
                bonds that should be drawn as sticks. If an
 +
                empty vector is supplied, 1.6 Angstrom cut-
 +
                off distance is used
 +
 
 +
==Outputs==
 +
 
 +
    this function creates a figure
 +
 
 +
==Examples==
 +
The figure below is produced by examples/nmr_paramag/s50c_density.m example file. The protein structure is drawn using [[molplot.m]] function.
 +
 
 +
[[File:molplot_example.png]]
 +
 
 +
==See also==
 +
[[plot_1d.m]], [[plot_2d.m]], [[plot_3d.m]], [[volplot.m]], [[mri_2d_plot.m]], [[hfc_display.m]], [[cst_display.m]]
 +
 
 +
 
 +
''Version 2.3, authors: [[Ilya Kuprov]]''

Revision as of 11:53, 29 December 2018

Plots a stick representation of a molecule from Cartesian coordinates supplied.

Syntax

    molplot(xyz,conmatrix)

Arguments

    xyz       - Cartesian coordinates, as Nx3 matrix, in
                Angstroms
    conmatrix - NxN connectivity matrix indicating chemical
                bonds that should be drawn as sticks. If an
                empty vector is supplied, 1.6 Angstrom cut-
                off distance is used

Outputs

    this function creates a figure

Examples

The figure below is produced by examples/nmr_paramag/s50c_density.m example file. The protein structure is drawn using molplot.m function.

Molplot example.png

See also

plot_1d.m, plot_2d.m, plot_3d.m, volplot.m, mri_2d_plot.m, hfc_display.m, cst_display.m


Version 2.3, authors: Ilya Kuprov