Borrar filtros
Borrar filtros

How to separate symbolic equation coefficients

13 visualizaciones (últimos 30 días)
Gil maor
Gil maor el 23 de Mayo de 2017
Comentada: Gil maor el 23 de Mayo de 2017
Hi All,
Lets say that I have a symbolic term L=Ax+By not in vector form. How do I, get the term that multiplies x and y i.e. Q=A,W=B without retyping the equation?
Thanks!
Gil,

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 23 de Mayo de 2017
Editada: Andrei Bobrov el 23 de Mayo de 2017
syms A B x y
L = A*x + B*y;
out = coeffs(L,[x,y])

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by