How to separate symbolic equation coefficients
15 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Andrei Bobrov
on 23 May 2017
Edited: Andrei Bobrov
on 23 May 2017
syms A B x y
L = A*x + B*y;
out = coeffs(L,[x,y])
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!