Akzeptierte Antwort

Harry MacDowel
Harry MacDowel am 17 Okt. 2011

10 Stimmen

First, plot the data like usual.
Then go to Tools -> Basic Fitting
Choose one of the fittings you like, then check Show Equation
Remember to click the Right Arrow key at the bottom right to view the values of the coefficients for the fit.

Weitere Antworten (2)

Sarah Weihmann
Sarah Weihmann am 14 Mär. 2017

3 Stimmen

Hi Aravind S,
try the fit command for trendline calculation: http://de.mathworks.com/help/curvefit/fit.html Display the equation y=m*x+n as >> m=3; >> n=4; >> legend(sprintf('y=%f*x+%f',m,n));
Cheers, S
aravind S
aravind S am 9 Feb. 2017

0 Stimmen

Is there command available?

1 Kommentar

Pablo López
Pablo López am 27 Jun. 2018
Bearbeitet: Pablo López am 27 Jun. 2018
Sure! Take a look of polyfit for polynomial curve fitting.
Hope that helps!

Melden Sie sich an, um zu kommentieren.

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by