Comparison of the peak detection functions findpeaksG, findpeaksb, findpeaksb3, and findpeaksfit for a computer-generated signal with multiple peaks on a variable baseline plus variable random noise. You may change the lines here marked by <<< to modify the character of the signal peaks, baseline, and noise. For example, you can change the peak shape in line 19, peak positions, heights, and widths in lines 14-16, the sampling density in line 12, baseline shape in line 32, baseline amplitude in line 20, noise type in line 39, noise amplitude in line 18, and the baseline correction mode in line 23. Adjust the signal, baseline, and noise to look like your data, to see which methods result in the lowest peak parameter errors.