Re: [Tutor] locations

2006-04-21 Thread Carroll, Barry
Hi, Linda, > -Original Message- > I have a question. in the LIST M= > [[1,1,1,1], > [0,1,1,1], > [1,1,0,1], > [1,1,1,1]] > If treat them as the locations of 16 points, I want to generate another > list > N to hold the corresponding value for each point to its nearest 0. > For example: > th

Re: [Tutor] locations

2006-04-21 Thread Alan Gauld
: "Alan Gauld" <[EMAIL PROTECTED]> To: "linda.s" <[EMAIL PROTECTED]>; "Pujo Aji" <[EMAIL PROTECTED]> Cc: Sent: Friday, April 21, 2006 4:49 PM Subject: Re: [Tutor] locations >> - > I have a question. in the LIST M= > [

Re: [Tutor] locations

2006-04-21 Thread Alan Gauld
> - I have a question. in the LIST M= [[1,1,1,1], [0,1,1,1], [1,1,0,1], [1,1,1,1]] If treat them as the locations of 16 points, I want to generate another list N to hold the corresponding value for each point to its nearest 0. > -- Your explanation of the proble

[Tutor] locations

2006-04-21 Thread linda.s
I have a question. in the LIST M= [[1,1,1,1], [0,1,1,1], [1,1,0,1], [1,1,1,1]] If treat them as the locations of 16 points, I want to generate another list N to hold the corresponding value for each point to its nearest 0. For example:the nearest 0 point to M[0][0] is M[1][0], so N[0][0]=1; M[0][1]