LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting Eigenvectors and Eigenvalues

Solved!
Go to solution

Hello!

I am interested to carry out eigenvalue decomposition of a covariance matrix.LabVIEW actually provides a function for it but my requirements are to sort out eigenvalue in decending order and to rearrange the eigenvectors which corresponds to the sequence of large eigenvalues in respective columns.I mean if i have an eigenvalue which belongs to eigenvector and is present in the 3rd column, i want to place that column into the first column.Sort function actually provides indexes and order(ascending/decending) of eigenvalues.

 

Hoping to have a sorted eigenvectors wrt to Eigenvalues.......!!!

0 Kudos
Message 1 of 6
(3,191 Views)

There is a function (Reorder Array) in OpenG (https://www.ni.com/en/support/downloads/tools-network/download.openg-libraries-for-labview.html#3790...) Array pallete, which does what you want.

0 Kudos
Message 2 of 6
(3,182 Views)

Well, you already have the sort key from "sort complex numbers", so all you need is index into the 2D array according to it. Since you want columns, transpose at the end.

 

Here's a quick draft (LabVIEW 2010). (snippet is LV2012)

 

Download All
Message 3 of 6
(3,172 Views)
Solution
Accepted by sets

Thankyou so much.Yes it is working :manhappy:

0 Kudos
Message 4 of 6
(3,151 Views)

I am glad it is working for you.

 

However, you should mark the most helpful post as solution, and not your last post. Your post does NOT contain the solution, right?

Message 5 of 6
(3,143 Views)

@sets wrote:

Thankyou so much.Yes it is working :manhappy:


Dirty Harry Callahan: "Yeah, you're a legend in your own mind".....Smiley Wink

0 Kudos
Message 6 of 6
(3,139 Views)