필터 지우기
필터 지우기

How to separate symbolic equation coefficients

조회 수: 13 (최근 30일)
Gil maor
Gil maor 2017년 5월 23일
댓글: Gil maor 2017년 5월 23일
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,

답변 (1개)

Andrei Bobrov
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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by