MathGroup Archive 2004

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

Search the Archive

Re: matrix operations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46393] Re: matrix operations
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Mon, 16 Feb 2004 23:42:55 -0500 (EST)
  • References: <c0qjb3$k8q$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

x=Array[a,{4,5}];

To extract column n

n=2;

x[[All,n]]

{a(1,2),a(2,2),a(3,2),a(4,2)}

Transpose[x][[n]]

{a(1,2),a(2,2),a(3,2),a(4,2)}

#[[n]]&/@x

{a(1,2),a(2,2),a(3,2),a(4,2)}


Bob Hanlon

In article <c0qjb3$k8q$1 at smc.vnet.net>, "paolo tarpanelli"
<tarpanelli at libero.it> wrote:

<< How can i extract a column from a matrix and transform that column in a
vector to make operation with this???


  • Prev by Date: Re: time series
  • Next by Date: RE: time series
  • Previous by thread: Re: matrix operations
  • Next by thread: Re: matrix operations