Re: matrix operations

• To: mathgroup at smc.vnet.net
• Subject: [mg46389] Re: [mg46354] matrix operations
• From: Tomas Garza <tgarza01 at prodigy.net.mx>
• Date: Mon, 16 Feb 2004 23:42:33 -0500 (EST)
• References: <200402161359.IAA20517@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Work with the transpose of your matrix and extract the column you desire.
Also, cf. the AddOn package LinearAlgebra`MatrixManipulation`.

In[1]:=
aMat = Array[a, {3, 4}]
Out[1]=
{{a[1, 1], a[1, 2], a[1, 3], a[1, 4]}, {a[2, 1], a[2, 2], a[2, 3],
a[2, 4]}, {a[3, 1], a[3, 2], a[3, 3], a[3, 4]}}

In[2]:=
vec1 = Transpose[aMat][[1]]
Out[2]=
{a[1, 1], a[2, 1], a[3, 1]}

In[3]:=
vec2 = Transpose[aMat][[2]]
Out[3]=
{a[1, 2], a[2, 2], a[3, 2]}

Tomas Garza

Mexico City

----- Original Message -----
From: "paolo tarpanelli" <tarpanelli at libero.it>
To: mathgroup at smc.vnet.net
Subject: [mg46389] [mg46354] matrix operations

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

```

• Prev by Date: Re: No Output, No Error
• Next by Date: Re: Streaming input (with Linux)
• Previous by thread: matrix operations
• Next by thread: Re: matrix operations