trend line calculation and display
显示 更早的评论
Hi, how can I obtain and display a trend line from some points? I need the equation of the trend line. Thanks
采纳的回答
更多回答(2 个)
Sarah Weihmann
2017-3-14
3 个投票
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
2017-2-9
0 个投票
Is there command available?
1 个评论
Pablo López
2018-6-27
编辑:Pablo López
2018-6-27
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!