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

22 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Ag. de 2021
syms a b c x y
eqn = a*x+3*b*y+4*c*y+x-1 == 0
eqn = 
collect(eqn, [x, y])
ans = 

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by