MATLAB Answers

How can I find the coefficients of the symbolic variables in a linear equation?

38 views (last 30 days)
Itachi
Itachi on 6 Jul 2012
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 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by