2016-01-01 15:29:20 -0800 (PST), Nils Bruin:
You are correct: AC is a 2-by-1 matrix, and AC[0] selects the first row. > You can select the appropriate elements via > > a = AC[0,0] > b = AC[1,0] > > or > > a = AC[0][0] > b = AC[1][0] > I would recommend the first syntax, a = AC[0,0] which just accesses the given element, and so it is faster than a = AC[0][0] which would create the vector AC[0] and then get its index 0 coordinate. Moreover, if you want to change an element of a matrix, writing AC[0,0] = 9 will work, while AC[0][0] = 9 will fail. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.