diff --git a/introduction-to-arrays-vectors-and-matrices/76-Vectors & Matrix.md b/introduction-to-arrays-vectors-and-matrices/76-Vectors & Matrix.md index 3a85d5b..c95a262 100644 --- a/introduction-to-arrays-vectors-and-matrices/76-Vectors & Matrix.md +++ b/introduction-to-arrays-vectors-and-matrices/76-Vectors & Matrix.md @@ -21,9 +21,9 @@ This is a one-dimensional array, or a vector, because there is only one row of t In contrast, if you had a box with multiple rows of toy cars, like this: -car 1, car 2, car 3 -car 4, car 5, car 6 -car 7, car 8, car 9 +car 1, car 2, car 3
+car 4, car 5, car 6
+car 7, car 8, car 9
Then this would be a two-dimensional array, because it has two dimensions, or directions (up and down, as well as left and right). @@ -50,9 +50,9 @@ With that let's understand Matrices with an intuitively example. Imagine you hav For example, you could have a matrix with three rows and three columns, like this: -car 1, car 2, car 3 -car 4, car 5, car 6 -car 7, car 8, car 9 +car 1, car 2, car 3
+car 4, car 5, car 6
+car 7, car 8, car 9
In this matrix, the first row has three toy cars (car 1, car 2, and car 3), the second row has three toy cars (car 4, car 5, and car 6), and the third row has three toy cars (car 7, car 8, and car 9). @@ -82,4 +82,4 @@ Each toy car has a specific position in the matrix, based on its row and column. * Whenever you are working with matrix shape, remember rows $\times$ columns. -Both vectors and matrices are useful for organizing and storing data, and they can be used in different ways to solve problems. For example, you could use a vector to keep track of the scores in a game, or you could use a matrix to represent the positions of objects on a screen. \ No newline at end of file +Both vectors and matrices are useful for organizing and storing data, and they can be used in different ways to solve problems. For example, you could use a vector to keep track of the scores in a game, or you could use a matrix to represent the positions of objects on a screen.