These functions demonstrate the operation and optimization of the peak finding and fitting functions iPeak.m and peakfit.m, generating simulated signals containing random noise and comparing their peak parameter measurements to the known true values. Includes a demonstration of the estimation of peak parameter errors by the bootstrap method. These functions contain all required sub-functions. Just download the zip file, right-click and select "Extract all", then put the resulting files in the Matlab path and run them by typing their names at the Matlab command window prompt.
Additional demo added.