フィルターのクリア

Curve fitting with 5 variables

1 回表示 (過去 30 日間)
Redwood
Redwood 2013 年 4 月 14 日
Dear Matlab experts,
I want to code curve fitting with 5 variables.
I got this message from Matlab, "Too many input arguments."
I added my code here, and I want to know how to solve this problem.
Thank you in advance.
Sincerely yours,
Redwood
%%Fit: 'China'.
[xData, yData, wData, cData, zData] = prepareSurfaceData( x, y, w, c, z );
% Set up fittype and options.
ft = fittype( 'a+ b*x +c*y + d*w + e*c', 'independent', {'x', 'y', 'w', 'c'}, 'dependent', 'z' );
opts = fitoptions( ft );
opts.Display = 'Off';
opts.Lower = [0 0 0 0 0];
opts.StartPoint = [0.01 0.01 0.01 0.01 0.01];
opts.Upper = [Inf Inf Inf Inf Inf];
% Fit model to data.
[fitresult, gof] = fit( [xData, yData, wData, cData], zData, ft, opts );
  5 件のコメント
Redwood
Redwood 2013 年 4 月 15 日
I got this in Matlab.
Error using prepareSurfaceData (line 31) Too many input arguments.
Sincerely your,
Redwood
Walter Roberson
Walter Roberson 2013 年 4 月 15 日
prepareSurfaceData's changes are specifically documented; you can undertake them yourself; see http://www.mathworks.com/help/curvefit/preparesurfacedata.html

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by