From 226b1e9aabc4a557cd522f4488d9e03492e367f0 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 21 Sep 2011 00:42:50 -0400 Subject: formatting fixes --- software/matlab.page | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'software/matlab.page') diff --git a/software/matlab.page b/software/matlab.page index 16ef567..54daa3d 100644 --- a/software/matlab.page +++ b/software/matlab.page @@ -14,20 +14,26 @@ Matlab 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 -:: +Create a new matrix: + + A = [1,2,3,4] + +Select the first element of a matrix, **zero-indexed**: + + A(1) + +Create a one dimensional matrix: + + B = [ [1,2,3], [4,5,6], [7,8,9] ] + + +Create a two dimensional matrix: B = [ [1,2,3], - [4,5,6], - [7,8,9] ] + [4,5,6], + [7,8,9] ] - creates a two dimensional matrix Matrix Operations ------------------ -- cgit v1.2.3