Syntax

mAtomList = matom(obj)

Description

mAtomList = matom(obj) is the same as spinw.atom, but only lists the magnetic atoms, which have non-zero spin. Also this function stores the generated list in spinw.cache.

Output Arguments

mAtomList
structure with the following fields:
  • r Position of the magnetic atoms in a matrix with dimensions of .
  • idx Index in the symmetry inequivalent atom list spinw.unit_cell stored in a row vector with number of elements.
  • S Spin of the magnetic atoms stored in a row vectorwith number of elements.

See Also

spinw.atom