Home > Applications > SpinW > m_files > sw_quadell.m

iFit/sw_quadell

PURPOSE ^

calculates and plots the parameters of an ellipsoid from a quadratic form

SYNOPSIS ^

function ellM = sw_quadell(M, toplot)

DESCRIPTION ^

 calculates and plots the parameters of an ellipsoid from a quadratic form

 ellM = SW_QUADELL(M, plot)

 It calculates the parameters of an ellipsoid belonging to the input
 quadratic form and plots it. Can be used as a tool to visualise
 anisotropy matrices, g-tensors, etc.

 Input:

 M         Quadratic form coefficients in a 3x3 matrix.
 toplot    If true, the ellipsoid is plotted. Default is true.

 Output:

 ellM      Contais the principal axis of the ellipsoid in the columns, 3x3
           matrix.

 On the plot the principal axes are shown by a red line, the x,y and z
 axes are shown by black line.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1