How do I extract coefficients from an "equation?"

This is my equation:
eqn15 =(2519*Ncz + 2736)*z + (86860*Nck)*kh == (20*Nkz*(4439*Nck + 48))*z + (20*Nkk*(4439*Nck + 48))*kh
I want to extract the coefficients off the two of the symbolic variable kh and z (all letters in the equation are symbolic) to create two separate equations of the form: (86860*Nck)=(20*Nkk*(4439*Nck + 48)), but I have not found any method for doing this. Is there a simple way to do this?

 채택된 답변

Walter Roberson
Walter Roberson 2015년 11월 20일

0 개 추천

and before that you would probably want to use children() to separate the two parts of the "=="

추가 답변 (0개)

카테고리

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

질문:

2015년 11월 20일

답변:

2015년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by