Mercurial > web-octave
changeset 34:b6475ae8a2c1
make example matrix inversion operands conformant
author | Alex Krolick <whokilledtheelectricmonk@gmail.com> |
---|---|
date | Tue, 16 Feb 2016 09:27:45 -0800 |
parents | 80bd8cc6714d |
children | 644dbdc82430 44fe33d46ee6 79cbd4801fa8 |
files | index.html |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/index.html Tue Feb 02 21:59:50 2016 -0800 +++ b/index.html Tue Feb 16 09:27:45 2016 -0800 @@ -47,8 +47,9 @@ </div> <div class="columns medium-8"> {% highlight matlab%} -b = [4 9 2]' % Transposed row vector -A = [ 1 3 1; +b = [4; 9; 2] % Column vector +A = [ 3 4 5; + 1 3 1; 3 5 9 ] x = A \ b % Solve the system by inverting A {% endhighlight %}