LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PCA analysis cant connect matrix to sort columns

Hi,

 

I am having a problem trying to connect an 2X2 matrix to the column sort function. I was given a code snipet on this forum which works brilliantly on its own the only problem is when I try to connect it I get a series of errors. I have attached the code so anyone can see if anyone could please tell me what is going on. I am trying to connect the eigenvector matrix to the transpose matrix function just beside it but as soon as I do this I get the errors.

 

Any help is greatly appreciated.

 

Regards

Nick

0 Kudos
Message 1 of 2
(2,443 Views)

Hi Nick, 

 

The reason you cannot connect your sort function to the eigenvectors is because of a mismatch in data types.  The input is expecting a real matrix but your eigenvectors are complex.  There is a vi to build a real matrix from the eigenvalues which you could the input into your sort function but I don't believe this is what you’re looking for. 

 

Kyle 

 

Regional Account Manager
NI
0 Kudos
Message 2 of 2
(2,423 Views)