Say s(t) a temporal signal with length(s)=12000000. Some peaks are occuring at variable frequencies (I cannot simply remove these peaks using fft(s) because of this). This peaks have a high amplitude so it is easy for me to find the points in s(t) associated with this peaks using the following command :
s_indices = find(abs(s)>std(s)); %I use std(s) as a threshold for selecting the peaks points associated indices
The idea is to generate N new arrays containing the amplitudes of my signal inbetween those peaks in order to study them separately. As the number of data is high, I want to avoid using a 'for' loop and work with indices. Is there a simple way to do so or am I forced to use a 'for' loop?
Thank you for the time you take considering my question, I will further explain if things are not clear enough.