Difference between revisions of "Frac2cart.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎See also)
(Sync syntax/arguments/outputs with current Spinach source)
Line 1: Line 1:
 
{{DISPLAYTITLE:frac2cart.m}} __NOTOC__
 
{{DISPLAYTITLE:frac2cart.m}} __NOTOC__
 +
 
Converts fractional crystallographic coordinates to Cartesian coordinates.
 
Converts fractional crystallographic coordinates to Cartesian coordinates.
  
 
==Syntax==
 
==Syntax==
  
−
    [XYZ,va,vb,vc]=frac2cart(a,b,c,alpha,beta,gamma,ABC)
+
[XYZ,va,vb,vc]=frac2cart(a,b,c,alp,bet,gam,ABC)
  
 
==Arguments==
 
==Arguments==
  
−
    a,b,c            - three unit cell dimensions
+
a,b,c            - three unit cell dimensions
 
   
 
   
 
     alp,bet,gam      - three unit cell angles, degrees
 
     alp,bet,gam      - three unit cell angles, degrees
Line 17: Line 18:
 
==Outputs==
 
==Outputs==
  
−
    XYZ              - Cartesian atomic coordinates as
+
XYZ              - Cartesian atomic coordinates as
 
                       Nx3 array of numbers
 
                       Nx3 array of numbers
 
   
 
   
Line 23: Line 24:
  
 
==See also==
 
==See also==
 +
 
[[xyz2sph.m]], [[c2spinach.m]], [[gparse.m]], [[oparse.m]], [[s2spinach.m]]
 
[[xyz2sph.m]], [[c2spinach.m]], [[gparse.m]], [[oparse.m]], [[s2spinach.m]]
  
  
 
''Version 2.4, authors: [[Ilya Kuprov]]''
 
''Version 2.4, authors: [[Ilya Kuprov]]''

Revision as of 14:03, 5 April 2026


Converts fractional crystallographic coordinates to Cartesian coordinates.

Syntax

[XYZ,va,vb,vc]=frac2cart(a,b,c,alp,bet,gam,ABC)

Arguments

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, s2spinach.m


Version 2.4, authors: Ilya Kuprov