05-07-2009 07:54 PM
Hello everyone!!!
I have a problem: I have a huge 1D array and I need to split it in to sets of 8 elements as need to compare these 8 elements with another 1 D array of size 8. is this possible?
Thanks for the help!!
Solved! Go to Solution.
05-07-2009 08:07 PM
Try the Decimate 1 D array. Read the help to see if it does what you want.
05-07-2009 08:13 PM
05-07-2009 08:43 PM
05-07-2009 09:00 PM - edited 05-07-2009 09:01 PM
Two straightforward ways (among others):
05-07-2009 09:19 PM
05-07-2009 09:51 PM
05-07-2009 10:59 PM
Still think decimating would be easier, but that's JMHO.
Here's why: (Assume N pts)
Decimate (add outputs until you have 8 outputs total).
Now, the outputs will be 8 size N/8 arrays.
Next, concatenate them back together. Now you have a 2-D (8 x N/8) array.
Transpose it if you need it the other way around, and you're done.
05-08-2009 09:38 AM
05-10-2009 05:37 PM
Hello smercurio,
I am usind the Array subset to split my huge 1D array in to chunks of 8. But I am unsure as to what to pass in to the index input of the Array subset function. When I put it in a for loop, the index continuously changes. So what do I input?
Thanks!!