comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » subset a 2d array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
subset a 2d array [message #61940] Wed, 13 August 2008 20:14
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
For example, i hava an array like this:

13, 14, 15, 16, 17
23, 24, 25,26, 27
2, 4 , 5, 66 ,7
13, 14, 15, 16, 17
13, 14, 15, 16, 17

i know the center value is 5 .Then i want to subset the array to 3*3
and 5 is still the center. Just subset like this :

24, 25,26
4 , 5, 66
14, 15, 16,

Any one has good ideas how can i do that? Thank you~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: object question, persistent vs. scope
Next Topic: Re: subset a 2d array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 09:47:11 PDT 2025

Total time taken to generate the page: 1.75581 seconds