Split signal if there are zero values
8 views (last 30 days)
Hello, my task is simple i want to divide my signal into number x parts, where x is when the difference between the last nonzero value and the next to be found should be greater than a threshold, T. I tried to implement this but i always get the new result to be the same, my vector is not divided into subvectors.
if diff([s1(kk) s1(kk+1)])<T
Any suggestion wellcomed, or shoould i use combine the find with the unique functions? thank you.