trend line calculation and display
368 ビュー (過去 30 日間)
古いコメントを表示
Hi, how can I obtain and display a trend line from some points? I need the equation of the trend line. Thanks
採用された回答
Harry MacDowel
2011 年 10 月 17 日
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.
0 件のコメント
その他の回答 (2 件)
Sarah Weihmann
2017 年 3 月 14 日
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
0 件のコメント
aravind S
2017 年 2 月 9 日
Is there command available?
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Least Squares についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!