How to separate symbolic equation coefficients
조회 수: 13 (최근 30일)
이전 댓글 표시
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,
댓글 수: 0
답변 (1개)
Andrei Bobrov
2017년 5월 23일
편집: Andrei Bobrov
2017년 5월 23일
syms A B x y
L = A*x + B*y;
out = coeffs(L,[x,y])
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!