09-29-2005 03:54 PM - edited 09-29-2005 03:54 PM
Mensaje editado por Fonsi
09-29-2005 04:19 PM
09-29-2005 04:46 PM
Hi Chaos,
Thanks for the fast reply....
Well, it solves it, but i need 2D array of index of elements, and putting the bundle, i got 1d array of cluster, any way to maintain 2d array with the elements wihtout 0 values??.
I need the output for another calculates...
Regards, Jose.
09-29-2005 05:24 PM
09-29-2005 07:15 PM - edited 09-29-2005 07:15 PM
As Chaos said, A 2D array must have the same lenght for all rows. NaN is a good idea and you can just check for its presence in the later code to determine the end of the current trace.
However, you should generate the NaNs at the beginning. Replacing zeroes with NaNs after the calculation can accidentally wipe legitimate zeroes. 😉
I have made a quick modification that also shows some simplifications to your code.
See attached example (LAbVIEW 7.1). Let me know if you have questions. 🙂
Message Edited by altenbach on 09-29-2005 05:24 PM
09-30-2005 03:40 AM