12-26-2013 01:56 AM
Hi all,
I am trying to feed a cluster array into Mathscript but I find that the name of each element in the cluster must satisfy some rules so to avoid the compile error. I have an array fo cluster containing 3 clusters, each cluster have 4 elements (named "initial speed [m/s]", "acceleration", "initial position [m]", "time [us]"). I need to break down the cluster array into 4 arrays each contains all elements for "initial speed [m/s]", "acceleration", "initial position [m]" and "time [us]" respectively.
For example,
array 1 contains 4 elements for "initial speed [m/s]",
array 2 contains 4 elements for "acceleration",
array 3 contains 4 elements for "initial position [m]",
array 4 contains 4 elements for "time [us]"
is that any easy way to achieve that?
Solved! Go to Solution.
12-26-2013 02:51 AM
12-26-2013 03:15 AM
@udka wrote:
Give array of cluster to for loop-> unbundle each of them, build array by taking all the four values.
It seems that I don't even have to use the loop index, just unbundle the array of cluster in the loop works. Thanks.