| Author |
Comment/Response |
Tom Mozdzen
|
11/16/12 10:40am
I'm new to Mathematica and am trying to get a handle on indexed variables.
I can create a one dimensional indexed variable via something like this:
mat=Table[0,{50}]
and then access the elements via mat[[5]] for example.
If I try to create an Array and say Array[mat,{50}]
I get a set of values mat[1], ... mat[50], but can not use these as the Table example. It looks like the Array command just creates symbols that look like they can be accessed like indexed variables, but really can't.
What's the point of Array in this case?
I guess I'm resigned to use table to create indexed variables.
any other insight?
thanks in advance.
Tom
URL: , |
|