diff options
author | Bryan Newbold <bnewbold@charm.mit.edu> | 2008-04-30 02:17:08 -0400 |
---|---|---|
committer | Bryan Newbold <bnewbold@charm.mit.edu> | 2008-04-30 02:17:08 -0400 |
commit | eddf7ac52a75a026c7ada9f777e059663b354f9a (patch) | |
tree | f1c0f84c6abece74c91c4ab2661bff096a00f446 /matlab | |
parent | 80b4628e5a94dfedd2c6ee91bdb608c531a78598 (diff) | |
download | knowledge-eddf7ac52a75a026c7ada9f777e059663b354f9a.tar.gz knowledge-eddf7ac52a75a026c7ada9f777e059663b354f9a.zip |
some stuff
Diffstat (limited to 'matlab')
-rw-r--r-- | matlab | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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 ------------------ |