Simple way to solve a system of linear equations in Matlab? <p>I'm looking for an easy and fast solution to the following problem: I have three 3D vectors <code>x_i</code>, three 3D vectors <code>y_i</code>, a 3D vector <code>b</code> and a 3x3 matrix A with coefficients a11 - a33 (that are unknown).</p> <p>The relation is as follows:</p> <pre><code>x_i = A * y_i + b </code></pre> <p>That resolves to</p> <pre><code>x_i_1 = ( a11 * y_1_1 + a12 * y_2_1 + a13 * y_3_1 ) + b_1 </code></pre> <p>etc.</p> <p>So there are 9 equations and 9 unknown variables a11 - a33, easy peasy math. But how do I solve this system using build in Matlab functions?</p>