Skip to content

Commit

Permalink
differences for PR #260
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 14, 2024
1 parent 3aafb19 commit b2bdf1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions 02-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ its [index](../learners/reference.md#index) in parentheses:
ans = 38
```

Indices are provided as (row, column). So the index `(5, 6)` selects the element
on the fifth row and sixth column.
Indices are provided as (row, column). In Matlab, indexing starts at 1.
So the index `(5, 6)` selects the element on the fifth row and sixth column.

![](fig/Matlab_Array_Indexes.svg){alt='8-by-8 matrix with rows for each label and column indicating their number. Rows numbered 1 to 8, as are columns'}

An index like `(5, 6)` selects a single element of
an array, but we can also access sections of the matrix, or [slices](../learners/reference.md#slice).
Expand Down
2 changes: 1 addition & 1 deletion md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"config.yaml" "ab22e2bf5a5cd3a2bd65498a7ca6a898" "site/built/config.yaml" "2023-04-26"
"index.md" "8f1498ab2efb0d63a9b7a95bf33510dd" "site/built/index.md" "2023-04-26"
"episodes/01-intro.md" "1d2ac5ffc776e9e9eaf062e8dbf015fa" "site/built/01-intro.md" "2023-04-26"
"episodes/02-arrays.md" "d6242c23a3d07c947f9cfc0111c0e4ac" "site/built/02-arrays.md" "2023-04-26"
"episodes/02-arrays.md" "31a34be3d2c643a2a8d8a53e21de2321" "site/built/02-arrays.md" "2024-11-14"
"episodes/03-plotting.md" "438d2a773392adfd2fde63e178f4fb83" "site/built/03-plotting.md" "2023-04-26"
"episodes/04-scripts.md" "d928cc345f515680e04f9d25cc2f2cec" "site/built/04-scripts.md" "2023-04-26"
"episodes/05-loops.md" "88c1b90d65bbeb46692922b805d4a251" "site/built/05-loops.md" "2023-04-26"
Expand Down

0 comments on commit b2bdf1f

Please sign in to comment.