How can I use curve fitting tool as function?

Hi everyone,
I want to use Curve fitting tool as in the picture below as Matalb function.Which is function I have to use in the my code to get same result.
Thanks in advance,
Riyadh
CFT.jpg

 Réponse acceptée

Riyadh Muttaleb
Riyadh Muttaleb le 5 Avr 2019

0 votes

Thank you for your answer, Does this function include Robust LAR?

Plus de réponses (1)

results = fit([x2e(:), x1e(:)], ye(:), 'poly11');
coeffs(results)

2 commentaires

results = fit([x2e(:), x1e(:)], ye(:), 'poly11', 'Robust', 'LAR');
coeffs(results)
Great! Thank you

Connectez-vous pour commenter.

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by