how can I transform the n monomial of a polynomial into n variables?

how can I transform the n monomial of a polynomial into n variables? for example,y=3a+4b+5c;then I want the n monomial stored in n variables,y1=3a;y2=4b;y3=5c; Any help is the most welcome! maxpassion@163.com

댓글 수: 2

What are y,a,b,c? Are they sym variables?
yes,they are symbolic variables!

댓글을 달려면 로그인하십시오.

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2013년 7월 20일
syms a b c
y = 3*a+4*b+5*c;
out = fliplr(coeffs(y)).*symvar(y)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

질문:

hui
2013년 7월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by