How to separate symbolic equation coefficients
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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,
0 comentarios
Respuestas (1)
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])
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!