Re: Vector Transposition
- To: mathgroup at smc.vnet.net
- Subject: [mg14682] Re: Vector Transposition
- From: Anton Antonov <anton at unidhp1.uni-c.dk>
- Date: Sun, 8 Nov 1998 21:15:40 -0500
- Organization: UNI-C, Denmark
- References: <720tce$1ve@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Yves Gauvreau wrote: > Hi, > > I have Mathematica V3.0 for student and I'd like to know if someone as a > suggestion on how to do a Transpose on an expression that evaluate to a > n x 1 or 1 x n vector. The use of Map[{#}&, x] only works if x is a > vector. > > Thanks > > Yves Try fo example this: If[VectorQ[#],{#}& /@ #,Transpose[#]]&[<expression>] Regards Anton