フィルターのクリア

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])
  1 件のコメント
Gil maor
Gil maor 2017 年 5 月 23 日
Working!
Thanks!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by