Filter löschen
Filter löschen

How to separate symbolic equation coefficients

13 Ansichten (letzte 30 Tage)
Gil maor
Gil maor am 23 Mai 2017
Kommentiert: Gil maor am 23 Mai 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,

Antworten (1)

Andrei Bobrov
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])

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!

Translated by