Use -> Basic fitting -> liner equation using code rather then the manual process

1 次查看(过去 30 天)
let's say i've got
x = [4,5,6,7,8]
y = [100,200,300,400,500]
liner extraploation
i want to add a line where i enter x = 9,10,11,12,13,14,15,16,17,18,19,20
the code auto generates my crosoponding y values

回答(1 个)

Alan Stevens
Alan Stevens 2021-4-23
help polyfit
help polyval

类别

Help CenterFile Exchange 中查找有关 Least Squares 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by