Use amend ( } ) to change cells once the matrix is read in ... eg

    m=:i.5 5
    m
  0  1  2  3  4
  5  6  7  8  9
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
    ] m=:(55)(<2;2)}m    NB. Amend produces a (changed) version of m  
so you need to save it back to m (or elsewhere)
  0  1  2  3  4
  5  6  7  8  9
10 11 55 13 14
15 16 17 18 19
20 21 22 23 24

But you need to check the reference manual, as there is a great deal  
of power in amend (eg can do vector and scattered index replacement  
also) so you can assign in multi instances all over the place in the  
one operation.

Rob Hodgkinson

On 21/04/2009, at 7:54 AM, Charles Holder wrote:

>
> I just got Windows Vista x64.  Since the APL  I have is not  
> compatible.
> I need to be able to read a file of numbers into an array and
> create another array and change the values in the cells.
> How can I change a cell to a specific value?
> _________________________________________________________________
> Rediscover HotmailĀ®: Get e-mail storage that grows with you.
> http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to