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!