# homogeneous systems in matlab

• Jan 21st 2010, 11:45 AM
superdude
homogeneous systems in matlab (still need help)
I am new to matlab and I'm uncertain how to enter a constant.

So I want to do something like $x_1 + x_2 +2x_3 = 0$ but I'm don't know what to do about the = 0 part.

For example it would be wrong if I went
Code:

A=[1,1,2,0;...]
• Jan 21st 2010, 06:54 PM
CaptainBlack
Quote:

Originally Posted by superdude
I am new to matlab and I'm uncertain how to enter a constant.

So I want to do something like $x_1 + x_2 +2x_3 = 0$ but I'm don't know what to do about the = 0 part.

For example it would be wrong if I went
Code:

A=[1,1,2,0;...]

Be more specific, and make sure there is a question in your post.

CB
• Jan 22nd 2010, 02:31 PM
superdude
I want to use rref to find the general solution but I don't know how to acount for the "=0" part of the equations.
$
\begin{array}{lcl} 2x_1-x_2+4x_3+x_5 & = & 0 \\ x_1+2x_2 +3x_3+x_4-x_5 & = & 0 \\ -2x_1-x_2 -2x_4+2x_5& = & 0 \end{array}
$