From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2d array to cluster

Solved!
Go to solution

thank you i finally got it!

0 Kudos
Message 11 of 15
(3,484 Views)

Just for fun, here's what I probably would have done. It is arguably less code than what you did above. 😄

 

See if you understand any of it 😉

 

 

Message 12 of 15
(3,467 Views)

@altenbach wrote:

<snip>

Anyway, you code is way too complicated and a solution could probably fit on a postage stamp. To count the number of TRUEs in a boolean array of any dimension, you would simly use "boolean to (0,1)" on the array directly followed by "add array elements". No loops needed. Try it!

 

<snip>


OMG - I never thought of that.  Thanks for the tip!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 15
(3,426 Views)

Sir thanks for the elaboration !

 

But i couldn't solve the problem. Still, i am in same mess. VI is attached. Also the file in which error is coming, is attached. I believe we can't do any change in ml_Distance_L2 Norm.vi , as that is stored in program files-machine learning. So where am i doing wrong in my VI (query.vi). 

 

Please suggest something. 

 

Thanks & best regards !!!

 

 

Download All
0 Kudos
Message 14 of 15
(3,197 Views)

Sorry 

 

posted at wrong place....

0 Kudos
Message 15 of 15
(3,193 Views)