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
: "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=
> [
> -
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
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]