I am new to matlab and I'm uncertain how to enter a constant.

So I want to do something like $\displaystyle 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 wentCode:`A=[1,1,2,0;...]`

Printable View

- Jan 21st 2010, 11:45 AMsuperdudehomogeneous 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 $\displaystyle 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 wentCode:`A=[1,1,2,0;...]`

- Jan 21st 2010, 06:54 PMCaptainBlack
- Jan 22nd 2010, 02:31 PMsuperdude
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.

$\displaystyle

\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}

$