Exponential curve fit matlab

后端 未结 2 1949
走了就别回头了
走了就别回头了 2021-01-15 18:38

I have the following equation:

\"\"

I want to do a exponenti

2条回答
  •  既然无缘
    2021-01-15 18:57

    One approach is to use a linear regression of log(y) with respect to u² and a³:

    Assuming that u, a, and y are column vectors of the same length:

    AB = [u .^ 2, a .^ 3] \ log(y)
    

    After this, AB(1) is the fit value for A and AB(2) is the fit value for B. The computation uses Matlab's mldivide operator; an alternative would be to use the pseudo-inverse.

    The fit values found this way are Maximum Likelihood estimates of the parameters under the assumption that deviations from the exact equation are constant-variance normally distributed errors additive to A u² + B a³. If the actual source of deviations differs from this, these estimates may not be optimal.

提交回复
热议问题