Can MATLAB easily solve a system of polynomial equations?

5 ビュー (過去 30 日間)
Chris
Chris 2013 年 2 月 27 日
回答済み: ARF 2020 年 8 月 17 日
Hey, I have a quick MATLAB question that might seem obvious, but I just can't find any documentation that can figure out my issue.
Let's say you have a system:
R = A x^2 + B x + C
S = 4A x^2 + 5B x + 2C
T = 5A x^2 + 8B x + 4C
Is there a way to solve for A, B,and C directly through MATLAB? Thanks.
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 28 日
What are your unknown vatriables?

サインインしてコメントする。

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 28 日
編集済み: Azzi Abdelmalek 2013 年 2 月 28 日
If x is the unknown variable
v=[A B C -R]
roots(v)
Do this to all your equations, then find the intersection

その他の回答 (1 件)

ARF
ARF 2020 年 8 月 17 日
You want to solve for A, B, and C. So assuming that the rest of variables are given, you find the solution by:
ABC = [x^2 x C; 4*x^2 5*B 2*C; 5*x^2 8*B 4*C]\[R; S; T];
A = ABC(1);
B = ABC(2);
C = ABC(3);

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by