diff options
Diffstat (limited to 'software/matlab.page')
-rw-r--r-- | software/matlab.page | 26 |
1 files changed, 16 insertions, 10 deletions
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 ------------------ |