I have a set of signals that due to some unknown error have been acquired with millions of empty datapoints. Is there a way I can automatically detect the moment the signal ends so I can delete everything from that point onwards?
This depends on how you define legitimate data, if you unplug a probe/sensor from an oscilloscope it will continue to display numbers and a waveform. If you're trying to measure a signal then it is fair to call recorded noise invalid data
Thanks for the reply! The missing values aren't really missing in the matlab file. They are missing in the original data collection software but as soon as you retrieve them, they turn into zeros so this code will not work :(
I'm in touch with the developers of the software but they still haven't been able to solve this.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
4 Comments
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1002772
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1002772
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1003009
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1003009
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1003078
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1003078
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1003582
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/591181-find-duration-of-signal#comment_1003582
Sign in to comment.