From eddf7ac52a75a026c7ada9f777e059663b354f9a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 30 Apr 2008 02:17:08 -0400 Subject: some stuff --- matlab | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'matlab') diff --git a/matlab b/matlab index ee309d9..20e7110 100644 --- a/matlab +++ b/matlab @@ -7,9 +7,27 @@ Matlab `cyclismo.org `_ 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 ------------------ -- cgit v1.2.3