Is there a function in matlab where I can get the common factor I want in an equation?

19 ビュー (過去 30 日間)
ax+3by+4cy+x-1=0
Is there a function in matlab where I can get the common factor I want in this equation?
For example, I want the x and y factors. Is there a common factoring function like the one below?
x(a+1)+y(3b+4c)-1=0

採用された回答

Walter Roberson
Walter Roberson 2021 年 8 月 15 日
syms a b c x y
eqn = a*x+3*b*y+4*c*y+x-1 == 0
eqn = 
collect(eqn, [x, y])
ans = 

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by