- Thread starter
- #1

- Apr 14, 2013

- 4,601

Hey! I need some help using the Matlab function ljx.m for solving a system of linear equations. I found a solved example for A= [tex] \bigl(\begin{smallmatrix}

1 & -1 &0 & 1\\

1 & 0& 1 & 0\\

1 &1 &2 & -1

\end{smallmatrix}\bigr) [/tex] and b=[tex] \bigl(\begin{smallmatrix}

1\\

1\\

-1

\end{smallmatrix}\bigr) [/tex].

At the first time they call the function by ljx(T,2,1).

Why do they take as pivot this element, and not for example ljx(T,1,1)??

Is there a specific reason, or can we take as pivot any element we want as long as it's different from 0?

1 & -1 &0 & 1\\

1 & 0& 1 & 0\\

1 &1 &2 & -1

\end{smallmatrix}\bigr) [/tex] and b=[tex] \bigl(\begin{smallmatrix}

1\\

1\\

-1

\end{smallmatrix}\bigr) [/tex].

At the first time they call the function by ljx(T,2,1).

Why do they take as pivot this element, and not for example ljx(T,1,1)??

Is there a specific reason, or can we take as pivot any element we want as long as it's different from 0?

Last edited: