Start and end point of a signal
17 views (last 30 days)
Show older comments
Commented: Amit Daud on 1 Feb 2021
I am fairly new to the MATLAB signal processing. I have a signal which I already threshold. Now, I need to find the start and end point of the signal. i.e. sample number where the signal started to get recognised by detector and the sample number where it did not recognise the signal anymore. Can anyone suggest any method to do so. I have attached some screenshots of the plot of signal for better understanding. I have also attached the matlab code but could not attach the .CSV file as it exceeds the 5MB size limit.
Thanks in ADV.
Timo Dietz on 1 Feb 2021
Not sure whether I understood your question, but if you want to get the indices of an array for which the data meets certain requirements/thresholds, you can use find.
E.g. if you want to have the indices of all values inside an array which exceed 5, you can just write
idx = find(array_name > 5)
min/max of idx gives you the start and the end index.
More Answers (0)
Find more on Correlation and Convolution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!