The ‘shapes’ cell is used to build sub-spectra in the FitSpec routine. It is therefore calculated from ‘shapes0’, and is expanded into all dimensions. For spectra with the same acquisition and processing parameters, and the same type of signal decay, one may recycle the ‘shapes’ cell to accelerate spectrum fitting (primarily useful when setup and actual fitting taking similar lengths of time). The content of the ‘shapes’ cell, however, is not described here, as correct calculation of the cell is difficult, and unnecessary for the user. One may obtain the ‘shapes’ cell, however, by setting three output arguments for the FitSpec function.
[fit shapes0 shapes]=FitSpec(spec,…);
The ‘shapes’ cell may then be input for another fitting, but must be used in conjunction with the ‘shapes0’ cell.
fit=FitSpec(spec,par,fit0,shapes0,shapes);
As always, one may omit the ‘par’ and ‘fit0’ variables by replacing either with ‘[ ]’.