Info
This question is closed. Reopen it to edit or answer.
Help counting number of runs of numbers (excluding zeros)
1 view (last 30 days)
Show older comments
Hi there
I'm looking for a bit of help to count the number of runs of a number but not including runs of zeros.
I've scoured the internet but just can't see anything that ignores zeros.
Basically I have a column of data made up of 1's, -1's, and 0's.
I need to know the total number of runs or 1's and -1's but not the 0's.
Can any one help out with this?
Thanks
1 Comment
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!