Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Multiple nonlinear regression using MATLAB?

I have the following function: y = a * x1^alpha * x2^beta + b

I am trying to find a, b, alpha and beta. I have data for y, x1 and x2 (which are 2 independent variables). How can I solve this using MATLAB?

4 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    That's a curve fitting, right?

    One possibility is to solve it as an optimization problem. You have to set your function in such a way that its minimized value is the answer. There are functions to minimize other functions, for example fminsearch.

    See this full example:

    http://www.matrixlab-examples.com/nonlinear-progra...

  • 4 years ago

    Matlab Nonlinear Regression

  • ?
    Lv 4
    4 years ago

    Nonlinear Regression Matlab

  • R G
    Lv 5
    1 decade ago

    fminsearch or lsqnonlin

Still have questions? Get your answers by asking now.