Collect the term with certain order
Mostra commenti meno recenti
Dear Everyone,
I have an extremely complicated multi-variablespolynomial expression.
For example,
z = a1 * x^2 + b1 * y^2 + c1* x^2 * y^2 + a2 * x^4 .....
I want to collect the coefficients of x^2, which is a1.
Everytime I use collect(z,x^2), it just returns a1*x^2 + c1* x^2* y^2 + a2 * x^4.
Does anyone have experience in extracting the exact term using collect function in Matlab?
Thanks,
Zongquan
Risposta accettata
Più risposte (1)
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!