From f61026119df4700f69eb73e95620bc5928ca0fcb Mon Sep 17 00:00:00 2001 From: User Date: Tue, 13 Oct 2009 02:52:09 +0000 Subject: Grand rename for gitit transfer --- software/matlab.page | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 software/matlab.page (limited to 'software/matlab.page') diff --git a/software/matlab.page b/software/matlab.page new file mode 100644 index 0000000..20e7110 --- /dev/null +++ b/software/matlab.page @@ -0,0 +1,39 @@ +================== +Matlab +================== + +.. warning:: + Stub, just getting started + +`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 + +Meta-Commands +------------------ +Placing a semicolon at the end of a line prevents the output from being printed to screen. + +``whos`` + Displays variables and their size +``format long``/``format short`` + Selects either 4 or 14 decimal place display -- cgit v1.2.3