# Tensor analysis.m

From Spinach Documentation Wiki

Returns diagnostic information about an interaction tensor. Syntax:

[eigvals,dcm,iso]=tensor_analysis(spin_system,tensor)

Parameters:

tensor - a 3x3 Cartesian interaction tensor matrix

Outputs:

eigvals - eigenvalues of the tensor

dcm - directional cosine matrix for the orientation of the tensor eigenframe relative to the fra- me it's been supplied in.

iso - isotropic part of the tensor

Note: directional cosine matrix is not unique. Although the function makes some effort at consistency, it cannot be guaranteed.