How to solve for the coefficients of a polynomial equation?
8 次查看(过去 30 天)
显示 更早的评论
I have a formula here:
T=A+BI+CI^2+DI^3
where T and I are known and varies, and A,B,C,D are my unknown constants...
With 4 unknowns, I would need to provide 4 equations.
How may I write these in matlab in order to solve for A,B,C and D?
0 个评论
采纳的回答
Azzi Abdelmalek
2013-1-10
编辑:Azzi Abdelmalek
2013-1-10
I=1;T=3
% A*y=b your equation with y=[A;B;C;D] are unknown variables
A=[1 1 I^2 I^3 % your first equation T=A+BI+CI^2+DI^3
1 3 4 5 % your second equation is A+3B+4C+5D=1
4 5 1 2
0 4 1 7]
b=[T;1;2;3]
y=A\b
2 个评论
更多回答(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!