How to separate symbolic equation coefficients
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Andrei Bobrov
am 23 Mai 2017
Bearbeitet: Andrei Bobrov
am 23 Mai 2017
syms A B x y
L = A*x + B*y;
out = coeffs(L,[x,y])
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!