Effacer les filtres
Effacer les filtres

Writing vectors for exponetial equation

1 vue (au cours des 30 derniers jours)
Hamid Ahmadi
Hamid Ahmadi le 15 Mai 2018
Commenté : Star Strider le 15 Mai 2018
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

Réponse acceptée

Star Strider
Star Strider le 15 Mai 2018
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 commentaires
Hamid Ahmadi
Hamid Ahmadi le 15 Mai 2018
Thank you so much for providing this sample. I understood completely.
Star Strider
Star Strider le 15 Mai 2018
As always, my pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Least Squares dans Help Center et File Exchange

Produits


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by