Fit data using a function
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sanchit Sharma
le 1 Juil 2019
Commenté : the cyclist
le 1 Juil 2019
Hello,
I am an absolute beginner in MATLAB. I want to fit my attached data as per this equation.
(-0.00789+0.06769*sqrt(x+0.021159*(x^2)))
In attached data------ Y axis = data.mat
X axis = ED.mat
Many thanks!
0 commentaires
Réponse acceptée
the cyclist
le 1 Juil 2019
Modifié(e) : the cyclist
le 1 Juil 2019
The equation you have written there has no parameters. It has only constants and the data.
But if each of those constants (e.g. 0.06769) is actually a parameter that you are hoping to find via fitting, then I suggest using the fitnlm function from the Statistics and Machine Learning Toolbox.
2 commentaires
the cyclist
le 1 Juil 2019
Sorry, I've never heard of that technique, and a quick google search did not turn up much for me.
Next time you ask a question, you might want to put more detail like that into it. It saves everyone's time.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!