Nazmul, the first step is to import your data into the form of Matlab variables, then download the peakfit.m function and place it in your Matlab path. The documentation for peakfit.m is on http://terpconnect.umd.edu/~toh/spectrum/InteractivePeakFitter.htm, but you might want to start with ipf.m, which allows you to change parameters just by pressing single keystrokes, without typing a bunch of input arguments. See http://terpconnect.umd.edu/~toh/spectrum/ifpinstructions.html for animated instructions.
28 Nov 2014
Command-line peak fitter for time-series signals. Version 5.7, September, 2014
Tom, I am trying to fit multiple Gaussian peaks to my photoluminescence spectra. These are x-y data sets with luminescence in y-axis with wavelength in x-axis. Honestly, I don't have any strong background in Matlab scripting, I have been trying a lot to figure out how to apply your peakfit.m with my data. Is it possible you can suggest me where to start from? Many thanks for such a nice submission.