ā05-31-2007 02:06 PM
ā05-31-2007 02:20 PM
ā05-31-2007 02:22 PM - edited ā05-31-2007 02:22 PM
You could also do the division in a FOR loop and deal with the result as it happens. (lower code).

Message Edited by altenbach on 05-31-2007 12:23 PM
ā05-31-2007 02:39 PM
ā05-31-2007 02:54 PM
As Altenbach has shown, it would be much quicker to operate on the entire array once.
Attached is an example which does remove the NaN elements, but depending on various variables, there might be faster solutions (for example, if there is a small number of NaNs, it might be faster to delete them from the array, etc.).
ā05-31-2007 02:55 PM
ā05-31-2007 03:15 PM
And just to toss in another idea...
Can you check for them when the array is being created and just not include them at that time?
Please disregard this post if not applicable.
Ben
ā05-31-2007 03:33 PM
ā05-31-2007 03:38 PM - edited ā05-31-2007 03:38 PM

The other case is "0" and has the two shift register data wires simply wired across.
Message Edited by altenbach on 05-31-2007 01:41 PM
ā05-31-2007 04:45 PM - edited ā05-31-2007 04:45 PM
Message Edited by unclebump on 05-31-2007 04:47 PM