LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert 2d array into 1D array with cluster of 3 elements

Solved!
Go to solution

hi every one 

Is there an easy way to convert a 2D array of clusters (3 elements) to a 1D array of cluster of 3 elements? I need to do this in order to store my large data to be compatible as this data type . as the attached vi , convert "3d point" that is 2d array to 1d array of cluster of 3 elements as "vertex array"

0 Kudos
Message 1 of 6
(4,876 Views)

Reshape array?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(4,871 Views)

@ssara wrote:

as the attached vi , 


There is nothing attached. Yes, reshape to 1D with a size of the product of the dimensions is probably the right thing here.

 

Reshaper.png

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

i used the reshape array as attached , but the result is 1D array of cluster with 1 element , I need a 1D array of cluster with 3 elements. any idea please??

0 Kudos
Message 4 of 6
(4,856 Views)
Solution
Accepted by ssara

Your input is a 2D array with three columns (no clusters!), so all you need is the following:

 

Pointsto1Darray.png

Message 5 of 6
(4,846 Views)

thank u Smiley Happy

0 Kudos
Message 6 of 6
(4,840 Views)