You might like this free MATLAB toolbox: http://www.mathworks.com.au/matlabcentral/fileexchange/24443-slm-shape-language-modeling Once you figure out how to use it, it works very well for all types of fits.