dihedral.m

From Spinach Documentation Wiki
Revision as of 19:20, 26 December 2018 by Admin (talk | contribs)
Jump to: navigation, search

Computes the dihedral angle between vectors specified by the four sets of atomic coordinates. The atoms are assumed to be bonded as A-B-C-D.

Syntax

    phi=dihedral(A,B,C,D)

Arguments

    A  -  row vector of cartesian coordinates 
          for atom A

    B  -  row vector of cartesian coordinates 
          for atom B

    C  -  row vector of cartesian coordinates 
          for atom C

    D  -  row vector of cartesian coordinates 
          for atom D

Outputs

    phi - dihedral angle, degrees

See also

frac2cart.m, xyz2sph.m, xyz2pms.m, xyz2hfc.m, xyz2dd.m


Version 2.3, authors: Ilya Kuprov