Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Array vs Table' topicStudent Support Forum > General > "Array vs Table"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Array vs Table')
Author Date Posted
Array vs Table Tom Mozdzen 11/16/12 10:40am
Re: Array vs Table yehuda 11/18/12 5:46pm
Re: Re: Array vs Table Tom Mozdzen 11/19/12 10:44am
Next Comment >Help | Reply To Topic