LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XYZ coordinates to matrices?

Solved!
Go to solution

Are they adjacent positive integers starting with zero or random integers (-7000, 5, 1000000)?

 

It would be so much easier if you could show some typical data.

0 Kudos
Message 11 of 17
(1,916 Views)

They are adjacent positive integers

0 Kudos
Message 12 of 17
(1,914 Views)

So, initialize a 2D array based on the max x and max y, then do my earlier suggestion, but wire x and y directly to the index inputs of "replace array subset".

0 Kudos
Message 13 of 17
(1,909 Views)

I'm still rather unsure how to go about this.  Here is what I have come up with so far but it doesn't seem very close to working.  What might I do to modify it?

0 Kudos
Message 14 of 17
(1,902 Views)
Solution
Accepted by chazzchuzz

Here's what I would do....

 

 

 

Of course this assumes that all positions are unique, etc.

Download All
Message 15 of 17
(1,888 Views)

It works!  Thank you so much, you've really saved me a lot of time.

Message 16 of 17
(1,875 Views)

@chazzchuzz wrote:

It works!  Thank you so much, you've really saved me a lot of time.


Make sure you fully understand why it works and how it works. Also be aware of the limitations.

Message 17 of 17
(1,861 Views)