How to fit a function with two or more dependant variables (outputs)?
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ryan Bisbey
le 2 Juin 2022
Réponse apportée : M Mirrashid
le 5 Juin 2022
I have a complex matlab function that takes x -> (y1,y2) based on several passed parameters. I would like to use curve fitting to find the optimal parameters that fit the function to data. Are there any such tools in MATLAB to accomplish this? nlinfit and the others seem to only want to work with a single independant variable column vector and a single dependant variable column vector (i.e. x -> y).
3 commentaires
Réponse acceptée
Matt J
le 2 Juin 2022
lsqcurvefit does not care about the dimensionality of the independent or dependant variables.
3 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Least Squares dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!