Writing vectors for exponetial equation

조회 수: 2 (최근 30일)
Hamid Ahmadi
Hamid Ahmadi 2018년 5월 15일
댓글: Star Strider 2018년 5월 15일
Hi, I' trying to fit my data that include 4 vectors in to this equation by using division function. However I don't know how to write D matrix. Here is my Equation.
F = a0 + a1*Em + a2*Ei*exp(a3*VF)
D = ?
U = D \ F

채택된 답변

Star Strider
Star Strider 2018년 5월 15일
Your model is nonlinear, not linear, so you cannot use the mldivide,\ function or operator with it. (It is nonlinear because the partial derivative with respect to the ‘a3’ parameter is a function of itself, and also ‘a2’.) You will have to use a nonlinear parameter estimation function, such as nlinfit, lsqcurvefit, or fminsearch.
  댓글 수: 4
Hamid Ahmadi
Hamid Ahmadi 2018년 5월 15일
Thank you so much for providing this sample. I understood completely.
Star Strider
Star Strider 2018년 5월 15일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by