フィルターのクリア

Multiple datasets, lsqcurvefit function?

2 ビュー (過去 30 日間)
Ionut  Anghel
Ionut Anghel 2013 年 8 月 8 日
Hi, I have the following problem ydata=[1:1:10]; xdata=[0.1:0.1:1]; zdata=[10:10:100];
ydata=1+(A+B*xdata*(1-xdata)^C*exp(-D*zdata))
Could lsqcurvefit method be used for this type of correlation to determine A;B;C;D coefficients? If not, there is other algorithm? Thank you

採用された回答

Shashank Prasanna
Shashank Prasanna 2013 年 8 月 8 日
LSQCURVEFIT is well suited for this type of problems:
>> y=[1:1:10]'; x=[0.1:0.1:1]'; z=[10:10:100]';
>> yFun = @(c,xdata) 1 + (c(1)+c(2)*xdata(:,1).*(1-xdata(:,1)).^c(3).*exp(-c(4)*xdata(:,2)))
>> lsqcurvefit(yFun,zeros(4,1),[x z],y)
  1 件のコメント
Ionut  Anghel
Ionut Anghel 2013 年 8 月 8 日
Thank you, It is working.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by