|
[Date Index]
[Thread Index]
[Author Index]
Re: Part of a matrix or array
- To: mathgroup at smc.vnet.net
- Subject: [mg51359] Re: [mg51334] Part of a matrix or array
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Fri, 15 Oct 2004 02:46:09 -0400 (EDT)
- References: <200410141037.GAA14972@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On Oct 14, 2004, at 6:37 AM, Gregory Lypny wrote:
> 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?
>
You could use Part and Range
X[[Range[3,7],Range[11,4]]]
Regards,
Ssezi
Prev by Date:
Re: Save graphics
Next by Date:
Re: Need to calculate Nyquist frequency from data
Previous by thread:
Part of a matrix or array
Next by thread:
Re: Part of a matrix or array
|