Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Assigning values to an array' topicStudent Support Forum > General > "Assigning values to an array"

Next Comment >Help | Reply To Topic
Author Comment/Response
making an array
11/20/05 9:29pm

Hello,

Why doesn't this work when trying to assign values to an array....


mat = Array[AA, {9, 9}];
Do[
   Do[
      AA[[i,j]] = 2, {j,9}
   ], {i,9}
]

I get...
Set::partd: Part specification AA?i,j? is longer than depth of object.

AA = 1


URL: ,

Subject (listing for 'Assigning values to an array')
Author Date Posted
Assigning values to an array making an ar... 11/20/05 9:29pm
Re: Assigning values to an array Forum Modera... 11/23/05 12:04pm
Re: Assigning values to an array yehuda ben-s... 11/23/05 12:17pm
Re: Assigning values to an array p.n. 11/30/05 00:25am
Re: Assigning values to an array p.n. 11/30/05 00:31am
Re: Assigning values to an array yehuda ben-s... 12/04/05 1:37pm
Re: Assigning values to an array p.n. 12/07/05 2:14pm
Re: Assigning values to an array yehuda ben-s... 12/15/05 01:39am
Next Comment >Help | Reply To Topic