I am trying to use the "findpeaks" function to find the peak in a set of data. I want to better understand how the function works. Please explain what is the purpose of the number "7000" in the line below? It finds several peaks when this number is low. It only finds one when this number is 7000 or higher.
[ymx,idx] = findpeaks(y, 'MinPeakProminence',7000);