summaryrefslogtreecommitdiffstats
path: root/matlab
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@snark.mit.edu>2008-06-10 10:49:02 -0400
committerbryan newbold <bnewbold@snark.mit.edu>2008-06-10 10:49:02 -0400
commit441919edafd7df8c5cd6b1a44dd637a878e0d70d (patch)
tree0a4c33b696e46d681c73a7832ffb7cf7cc85f4b8 /matlab
parent397cefef7929e6cd49959db1d891f5b0654ebd05 (diff)
parent70286a2ceb2202caff032e46f0b00ee1ba506c41 (diff)
downloadknowledge-441919edafd7df8c5cd6b1a44dd637a878e0d70d.tar.gz
knowledge-441919edafd7df8c5cd6b1a44dd637a878e0d70d.zip
Merge branch 'master' of ssh://animus.robocracy.org/srv/git/knowledge
Diffstat (limited to 'matlab')
-rw-r--r--matlab20
1 files changed, 19 insertions, 1 deletions
diff --git a/matlab b/matlab
index ee309d9..20e7110 100644
--- a/matlab
+++ b/matlab
@@ -7,9 +7,27 @@ Matlab
`cyclismo.org <http://www.cyclismo.org/tutorial/matlab/matrix.html>`_ has a good tutorial.
+Matrix Syntax
+------------------
+A = [1,2,3,4]
+ creates a new matrix
+A(1)
+ selects the first element of a matrix, **zero-indexed**
+B = [ [1,2,3], [4,5,6], [7,8,9] ]
+ creates a one dimensional matrix
+
+::
+
+ B = [ [1,2,3],
+ [4,5,6],
+ [7,8,9] ]
+
+ creates a two dimensional matrix
+
Matrix Operations
------------------
-``inv`` inverts a square matrix
+``inv``
+ inverts a square matrix
Meta-Commands
------------------