Effacer les filtres
Effacer les filtres

How to separate symbolic equation coefficients

13 vues (au cours des 30 derniers jours)
Gil maor
Gil maor le 23 Mai 2017
Commenté : Gil maor le 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,

Réponses (1)

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

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!

Translated by