Author Topic: Linear equations  (Read 567 times)

Offline taraba989

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Linear equations
« on: July 16, 2010, 01:07:33 PM »
Hello to everyone,
 
Could anyone help me, I have a problem while trying to solve linear equations with matlab.
The problem is:




\begin{alignat}{7}a_{11} x_1 &&\; + \;&& a_{12} x_2   &&\; + \cdots + \;&& a_{1n} x_n &&\; = \;&&& b_1 \\a_{21} x_1 &&\; + \;&& a_{22} x_2   &&\; + \cdots + \;&& a_{2n} x_n &&\; = \;&&& b_2 \\\vdots\;\;\; &&     && \vdots\;\;\; &&                && \vdots\;\;\; &&     &&& \;\vdots \\a_{m1} x_1 &&\; + \;&& a_{m2} x_2   &&\; + \cdots + \;&& a_{mn} x_n &&\; = \;&&& b_m. \\\end{alignat}


I want to solve it using matrix method, but when I type exact coefficients, matlab "says" :


-Undefined function or variable 'a'.
I don`t want to solve it in special case(for example: a=4, b=2...) I need to have general numbers but then the problem is unidentification.


Thanks!!!

Matlab and SimuLink Development Forum

Linear equations
« on: July 16, 2010, 01:07:33 PM »