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 CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by