How can I find the coefficients of the symbolic variables in a linear equation?
5 次查看(过去 30 天)
显示 更早的评论
Hi guys,
I want to draw out the coefficients of the symbolic variables in a linear equation, like:
syms x1 x2 x3
0*x1+5*x2+0*x3-10=0
and the coefficients are [0,5,0].
I used the "*coeffs*" fuction in the toolbox, but it omits the "zero coefficients.
please help me out. thanks in advance.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 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!