09-07-2012 04:31 PM
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.......!!!
Solved! Go to Solution.
09-07-2012 06:01 PM - last edited on 10-30-2024 10:10 AM by Content Cleaner
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.
09-08-2012 03:19 AM - edited 09-08-2012 03:19 AM
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)
09-09-2012 05:37 AM
Thankyou so much.Yes it is working :manhappy:
09-09-2012 11:14 AM
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?
09-09-2012 11:41 AM - edited 09-09-2012 11:43 AM
@sets wrote:
Thankyou so much.Yes it is working :manhappy:
Dirty Harry Callahan: "Yeah, you're a legend in your own mind".....