Write a scilab code to fit a straight line for the following data.
19 次查看(过去 30 天)
显示 更早的评论
Data:
x 0 1 2 3 4
y 1 1.8 3.3 4.5 6.3
1 个评论
Walter Roberson
2019-1-7
scilab is a different commercial programming language . This is not an appropriate forum for questions about scilab.
回答(2 个)
Shubham Gupta
2019-1-7
Use 'polyfit' to fit data to required polynomial degree.
take a look :
help polyfit
I hope this helps.
0 个评论
Image Analyst
2019-1-7
I'm sure you don't want us to do your homework for you, but I can offer you my demo of polyfit, attached.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!