Difference between revisions of "Frac2cart.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Remove obsolete s2spinach links)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     [XYZ,va,vb,vc]=frac2cart(a,b,c,alpha,beta,gamma,ABC)
 
     [XYZ,va,vb,vc]=frac2cart(a,b,c,alpha,beta,gamma,ABC)
  
−
==Arguments==
+
==Parameters==
  
 
     a,b,c            - three unit cell dimensions
 
     a,b,c            - three unit cell dimensions

Revision as of 17:49, 5 June 2026

Converts fractional crystallographic coordinates to Cartesian coordinates.

Syntax

    [XYZ,va,vb,vc]=frac2cart(a,b,c,alpha,beta,gamma,ABC)

Parameters

   a,b,c            - three unit cell dimensions

   alp,bet,gam      - three unit cell angles, degrees

   ABC              - fractional atomic coordinates as
                      Nx3 array of numbers

Outputs

   XYZ              - Cartesian atomic coordinates as
                      Nx3 array of numbers

   va, vb, vc       - primitive lattice vectors

See also

xyz2sph.m, c2spinach.m, gparse.m, oparse.m Version 2.4, authors: Ilya Kuprov