Surface Fitting Custom Equation

조회 수: 9 (최근 30일)
Daniel Clymer
Daniel Clymer 2015년 3월 17일
편집: Christiaan 2015년 3월 18일
I have 2 independent variables, x and y, and data for the dependent variable, z, that I want to fit a custom equation to. I type the custom equation into the curve fitting tool.
a*exp(b*x)+c*exp(d*y)
And the fitting tool varies the coefficients a and c until it outputs a fit. But it doesn't vary coefficients b and d at all from their starting values, which is a big problem. If I manually change the starting points b and d I can get much better fits, but I want the tool to find me the best fit by changing all the coefficients, does anyone know why this isn't working?
  댓글 수: 1
Christiaan
Christiaan 2015년 3월 18일
편집: Christiaan 2015년 3월 18일
Dear Daniel,
A manual how to use the Curve Fitting Tool from Mathworks for Surface Fitting can be found here.
If you load your x,y and z data here, you can use 'Custom Equation' for a fit. There you can use the equation: a*exp(-b*x) + c*exp(d*y). Please mind the minus sign in the first exponent. (a plus sign probably wouldn't convergate) Could you send me your data (as attachment), so that I can have a look at it?
Kind regards, Christiaan

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by