getting equation from 5 datas
Show older comments
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?
Answers (1)
Star Strider
on 29 Mar 2021
0 votes
There are several options, one being mldivide,\ and another being polyfit (and polyval). There are others as well.
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!