MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Table extraction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19200] Re: Table extraction
  • From: king at dircon.co.uk (Nigel King)
  • Date: Tue, 10 Aug 1999 02:52:53 -0400
  • Organization: Consultant
  • References: <7odkbs$7mq@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

> xyvector = Table[{0.,0.},{j,1,64},{i,1,320}];
> backvector = Table[{0.,0.},{j,1,16},{i,1,100}];
> 
> I need to extract part of xyvector and place it into  backvector. I have
> tried to use Part. I can extract the j range correctly (rows), but I
> can't get the Part function to extract in the i range (columns).

Needs["Statistics`DataManipulation`"];
backvector=ColumnTake[Take[xyvector, {3, 5}], {5, 7}]

takes columns 5 to 7 of rows 3 to 5

Nigel King  


  • Prev by Date: Automatic Display in MatrixForm
  • Next by Date: Linux sound output
  • Previous by thread: Re: Table extraction
  • Next by thread: Re: Table extraction