Azzera filtri
Azzera filtri

How to separate symbolic equation coefficients

13 visualizzazioni (ultimi 30 giorni)
Gil maor
Gil maor il 23 Mag 2017
Commentato: Gil maor il 23 Mag 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,

Risposte (1)

Andrei Bobrov
Andrei Bobrov il 23 Mag 2017
Modificato: Andrei Bobrov il 23 Mag 2017
syms A B x y
L = A*x + B*y;
out = coeffs(L,[x,y])

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by