1
Nonlinear Curve Fitting in Matlab Outputs Example: I use the 2D array of Gaussian- Profile fitting in LabVEIW to turn into Matlab forms. Summary I know the basic algorithm, nonlinear curve fitting , and outputs in Matlab. I would like to learn advanced numerical analysis and use my learned into the experiment. Principle Make the least chi-squared value, respecting to parameters; get the best fitting. Syntax lsqcurefit [x, resnorm, residual] = lsqcurefit(fun, x0, xdata, ydata) nlinfit [x, R, J, CovB, MSE] = nlinfit( xdata, Fig1. False color image of laser beam. Fig2. Horizontal Profile for fitting and residual. Fig3. Vertical Profile for fitting and residual.

03172014 nonlinear curve fitting in matlab

  • Upload
    jay-lin

  • View
    58

  • Download
    2

Embed Size (px)

DESCRIPTION

Nolinear Curve Fitting

Citation preview

Page 1: 03172014 nonlinear curve fitting in matlab

Nonlinear Curve Fitting in Matlab

Outputs• Example: I use the 2D array of

Gaussian-Profile fitting in LabVEIW to turn into Matlab forms.

Summary• I know the basic algorithm, nonlinear curve fitting ,

and outputs in Matlab.• I would like to learn advanced numerical analysis

and use my learned into the experiment.

Principle• Make the least chi-squared value, respecting to

parameters; get the best fitting.

Syntax• lsqcurefit[x, resnorm, residual] = lsqcurefit(fun, x0, xdata, ydata)• nlinfit[x, R, J, CovB, MSE] = nlinfit( xdata, ydata, fun, x0)

Fig1. False color image of laser beam.

Fig2. Horizontal Profile for fitting and residual.

Fig3. Vertical Profile for fitting and residual.