I've managed to set a minimum peak height when plotting some data and finding the peaks but is there a function I can ue to set a max peak height? I can't seem to find one.
As you can see the errors are quite large. My code is as follows:
figure(nF)findpeaks(ResAcceltrim,'MinPeakDistance',300,'MinPeakHeight',pe); pks=findpeaks(ResAcceltrim,'MinPeakDistance',300,'MinPeakHeight',pe);pks=pks(1:20,1);
Best Answer