02-05-2009 10:07 AM
Hi. I have an array of data consisting of zero and nonzero terms (Example: {1 2 56 2 3 0 0 0 0 0 2 3 5 2 3 5 2 0 0 0 0 32 43 }) I need to count the number of zeros in each string of zeros and plot that number against the first non zero term following the string of zeros (NOTE: string is used here as a description of a series of zeros, not a string variable). So the resulting plot coordinates from my example would be (5,2) and (4,32).
I am clear on how to do the plotting, but I am unable to store only each final tally of consecutive zeros without having some unecessary data in my plot.
Thank you in advance to everyone who has advice!
-Mike
Solved! Go to Solution.
02-05-2009 10:20 AM
02-05-2009 10:32 AM - edited 02-05-2009 10:34 AM
Doing anything like this?
EDIT: Minor correction due to extra Decrement function.
02-05-2009 12:12 PM
Nice work! That is exactly what I was looking for; thank you for your assistance.
-Mike
02-05-2009 02:02 PM