I have progressed that I can find the peaks of each signal by using
[pks,locs,widths,proms] = findpeaks(data(i,:),data(1,:),'MinPeakHeight',1.7)
But then every signal has different length vector for peaks. I don't understand if I can use sampling here.