Download Help (Windows Only) 
Owning Class: linalgebra
Requires: MathScript RT Module
ev = eigsort(a)
ev = eigsort(a, b)
[evec, evdiag] = eigsort(a)
[evec, evdiag] = eigsort(a, b)
ev = eigsort(a, order)
ev = eigsort(a, b, order)
[evec, evdiag] = eigsort(a, order)
[evec, evdiag] = eigsort(a, b, order)
Legacy Name: eigs
Computes eigenvalues and eigenvectors for real or complex square matrices. eigsort(a) solves the standard problem ax = lambda*x. eigsort(a, b) solves the general problem ax = lambda*bx. Out of all possible eigenvalues and eigenvectors, LabVIEW returns only six according to the order you specify.
Name  Description  

a  Specifies a square matrix whose dependent matrices are also square.  
b  Specifies a matrix of the same size as a. If you specify b, LabVIEW calls the qz function.  
order  Specifies how to determine which eigenvalues and eigenvectors to compute. order is a string that accepts the following values.

Name  Description 

ev  Returns six eigenvalues of a or the generalized eigenvalues of a and b. ev is a vector. 
evec  Returns a matrix of six columns whose columns are the normalized eigenvectors of a or the normalized generalized eigenvectors of a and b. 
evdiag  Returns a 6by6 matrix with the elements of ev on the diagonal. 
LabVIEW does not solve for the offdiagonal Jordan structure associated with repeated roots. If repeated roots to eig(a) or eig(a, b) exist, LabVIEW might illcondition evec artificially.
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Not characterized 
A = rand(100);
C = eigsort(A)