10-10-2013 04:09 AM
Consider an example, this pulse waveform contains some random repetitions of 0’s and 1's
Here the occurrences of value 1 is 21 times. So, how I can count this programmatically as No of 1's as 21
If I use Search function of array, just it display the corresponding y axis value of the First occurrences of 1.
How can I perform this operation???
Regards
Gokul
Solved! Go to Solution.
10-10-2013 04:20 AM - edited 10-10-2013 04:22 AM
10-10-2013 04:56 AM
Thanks for your kind reply GerdW.
when I follow your code. Just it gives no of repetitions of 1 on the basis of X - axis value. If my pulse is continuously giving 1 from ( 0 - 389 in X axis )
It shows 389... But see above output picture there is no occurrence of 0 (from 0 to 389 in X axis ) right. so, my goal is to take that as one occurrence of value 1.. If my pulse again goes to higher state then count it as 2 till it falls to low state.
Can you getting my point.??
Looking for your kind reply.!!
Regards
Gokul
10-10-2013 05:59 AM
10-10-2013 06:15 AM
Thank you GerdW..
Now I got the point. Thanks a lot.