Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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