필터 지우기
필터 지우기

nlinfit and lsqcurvefit for problems with multiple variables?

조회 수: 2 (최근 30일)
wesleynotwise
wesleynotwise 2017년 6월 25일
댓글: wesleynotwise 2017년 6월 26일
Am I right to say that the nlinfit and lsqcurvefit are unable to solve non-linear problem with multiple variables?

채택된 답변

John D'Errico
John D'Errico 2017년 6월 25일
편집: John D'Errico 2017년 6월 25일
No. You are not right. Not even remotely correct. They are both completely capable of solving a problem with multiple variables.
Your question is ambiguous though. Are you asking about independent predictor variables? The answer is: no problems.
Are you asking about multiple parameters to estimate? Again, no problem.
What you don't say is why you think there is any problem at all.
You might be confused because these functions expect a model of the form
fun(params,xdata)
That does not mean that params is a scalar. Nor does it mean that xdata is a vector.
If you have multiple parameters to estimate, params can be a vector or array of any shape or size. If your parameters are split into several distinct variables, then what stops you from combining them into one vector? Nothing.
If you have multiple independent variables, then note that xdata may be an array.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by