About the input parameter,"Range":
Range is a 4-element vector:
[Xmin, Xmax, Ymin, Ymax]
Xmin: the lower x boundary of region of interest(ROI).
Xmax: the upper x boundary of ROI
Ymin and Ymax are the same as Xmin and Xmax.
For example,
t=fpeak(A,B,30,[23,90,700,inf]);
means:
find the peaks whose x are between 23 and 90 and their values is between 700 and inf.

Comment only