Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*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 2004

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

Search the Archive

Re: Part of a matrix or array

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51374] Re: Part of a matrix or array
  • From: p-valko at tamu.edu (Peter Valko)
  • Date: Fri, 15 Oct 2004 02:47:19 -0400 (EDT)
  • References: <cklngp$f8h$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I am sure by now you have realized that 

Part[X, Range[3, 7], Range[11, 14]]

does what you want.


Peter



Gregory Lypny <gregory.lypny at videotron.ca> wrote in message news:<cklngp$f8h$1 at smc.vnet.net>...
> Hello everyone,
> 
> Mathematica has so many functions for accessing parts of arrays that 
> I'm not sure which one I should be using to get a submatrix, for 
> example, rows 3 to 7 and columns 11 to 14 of matrix X.  Should I use 
> Take?
> 
> 	Take[X,{3,7},{11,14}]
> 
> Is there a more compact way where I don't have to explicit refer to a 
> function?
> 
> 	Regards,
> 
> 		Greg


  • Prev by Date: Need help with HISTOGRAM plotting
  • Next by Date: Re: Solving an equation
  • Previous by thread: Re: Part of a matrix or array
  • Next by thread: Re: Part of a matrix or array