All these parameters can be changed in the Fit Options tab where we have to set the lower bound of the above parameters like the amplitude of the peak and width of peak greater than 0. The parameters which are defined in the above equation like the amplitude of the peak (a, a1, a2) and width of peak (c, c1, c2) cannot be negative in nature. Similarly, mention all the coefficients and constraints for the required model.
We can also click on Curve Fitting from the Apps tab alternatively. Click on cftool and open the Curve Fitting App. We have to load the required data set where we want to apply the Gaussian fit.Please find the below procedure that is used in applying Gaussian fit to a nonlinear model: The above equation is a nonlinear equation and the coefficients derived are part of an exponential function. c, c1, c2 is defined as the width of the peak.b, b1, b2 is defined as the centroid of the peak.Where a, a1, a2 is defined as the amplitude of the peak. We can also use a Gaussian fit that has an exponential space or has a nonlinear model. Based on the loaded data set, it will also calculate the start points that can be used in the Gaussian models which can be changed manually according to the requirement. If we want to specify the coefficient starting values, constraint bounds or change the settings of the algorithm, then that can be done in the “Fit Options tab”.We can see the different values of the coefficients, goodness of fit measures and several terms of the model in the Results pane. After changing the model type to Gaussian, select the number of terms that needs to be used in the Gaussian fit and it can vary from 1 to 8.By default, the curve fit of the model is Polynomial and we have to change it to Gaussian fit. After that, we need to select the curve fit data i.e.Click on cftool and open the Curve Fitting App.Gaussian Fit by using Curve Fitting Application: Please find the below syntax which is used in Matlab for Gaussian fit: The model type can be given as “gauss” with the number of terms that can change from 1 to 8. The input argument which is used is a Gaussian library model and the functions used are “fit” and “fittype”. There are various ways of applying the model with Gaussian fit in Matlab like given below: Gaussian Fit by using “fit” Function in Matlab
n is the total number of peaks and it falls in the range of 1 to 8.Excel functions, formula, charts, formatting creating excel dashboard & others