getting equation from 5 datas

Hi Matlab experts I need to solve a system of linear equations nut the problem is far beyond my knowledge and I hope somebody here can help me to solve it.
So here is the problem: I have 20 integer for both x1,x2,x3,x4 and y(fx5)
ax1+bx2+cx3+dx4+e=y(fx5)
i know all x1,x2,x3,x4 and y(fx5) values
how can i calculate a,b,c,d and e values my using matlab codes?

回答(1 个)

Star Strider
Star Strider 2021-3-29

0 个投票

There are several options, one being mldivide,\ and another being polyfit (and polyval). There are others as well.

类别

在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by