08-26-2005 11:56 AM
08-26-2005 12:04 PM
08-26-2005 12:10 PM
Actually, all you have to do is shift the array by 1 element and subtract the shifted copy fromn the unshifted copy and you have your answer -- no loops, no shift registers...
Mike...
08-26-2005 12:36 PM - edited 08-26-2005 12:36 PM
Message Edited by EVS on 08-26-2005 09:41 PM
08-26-2005 07:11 PM
08-29-2005 10:28 AM
08-29-2005 12:06 PM - edited 08-29-2005 12:06 PM
The function is "Delete from array" and it's icon looks different on the function pallete.
You can also literally use the logical shift function to shift the array elements, but then you have to trim off the last element in the result. This approach does that automatically because when you do math on arrays of different sizes, the result is always limited to the number of elements in the smaller of the two arrays.
Mike...
Message Edited by mikeporter on 08-29-2005 01:10 PM
05-03-2019 09:29 AM
@mikeporter wrote:
Actually, all you have to do is shift the array by 1 element and subtract the shifted copy fromn the unshifted copy and you have your answer -- no loops, no shift registers...
Mike...
That's brilliant Mike! Thanks