ā11-16-2017 02:48 PM - edited ā11-16-2017 03:04 PM
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"
Solved! Go to Solution.
ā11-16-2017 02:53 PM
Reshape array?
Ben
ā11-16-2017 02:58 PM
@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.
ā11-16-2017 03:11 PM - edited ā11-16-2017 03:19 PM
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??
ā11-16-2017 03:27 PM - edited ā11-16-2017 03:27 PM
Your input is a 2D array with three columns (no clusters!), so all you need is the following:
ā11-16-2017 03:35 PM
thank u