How to separate symbolic equation coefficients
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
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])
Vedere anche
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!