Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 76-Vectors & Matrix.md #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 <br>
car 4, car 5, car 6 <br>
car 7, car 8, car 9 <br>

Then this would be a two-dimensional array, because it has two dimensions, or directions (up and down, as well as left and right).

Expand All @@ -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 <br>
car 4, car 5, car 6 <br>
car 7, car 8, car 9 <br>

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).

Expand Down Expand Up @@ -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.
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.