I am writing a program and I want to explore the possiability of storint some data in a matrix. I know how to create one within a program but I can not figure out how to access the data I have stored within. How do I?
for single number access, use
y being the row of the element you want to access, and x the collumn
for example if i have matrix [A] as follows:
[[1 2 3] [4 5 6] [7 8 9]]
the following command
would return 8
for other kinds of access (dimensions, whole row/columns…) refer to this page for more information on matrices and links to usefull commands