Tuesday, 15 April 2014

matlab - How to obtain the number of discontinuities -



matlab - How to obtain the number of discontinuities -

suppose sawtooth function (or other periodic function discontinuities). want obtain number of discontinuities in function stated range.

for example, looking @ figure at

i should scalar result of 2 since there 2 discontinuities plotted in range.

does knows how that?

cheers, felipe.

it's question consider discontinuity. need threshold define that. can utilize next yoursignal (variable name of data)

occ = sum( abs( diff( yoursignal ) ) > threshold )

matlab signal-processing

No comments:

Post a Comment