obtaining coeff. of syms function
이전 댓글 표시
I m solving a 4th order eqn using syms, its like a*x^4+b*x^3+c*x^2+d*x+e=0, where a,b,c,d,e are constants. the eqn is stored in syms as 1x1 sym . I want to obtain the coeff.(a,b,c,d,e) separately from the sym structure.
채택된 답변
추가 답변 (1개)
ajit bhuddi
2011년 7월 14일
0 개 추천
댓글 수: 2
Paulo Silva
2011년 7월 14일
That's completely different from your original question but I will help you once more:
a=1;b=2;c=3;
syms x
s=a*x^3+b*x^2+c
pf=sym2poly(s);
pf(end-1) %the coefficient for x
ajit bhuddi
2011년 7월 15일
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!