How to separate symbolic equation coefficients
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Andrei Bobrov
le 23 Mai 2017
Modifié(e) : Andrei Bobrov
le 23 Mai 2017
syms A B x y
L = A*x + B*y;
out = coeffs(L,[x,y])
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!