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

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

Search the Archive

Re: Matrix Problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53595] Re: Matrix Problem
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Wed, 19 Jan 2005 02:00:18 -0500 (EST)
  • References: <200501181007.FAA23925@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Try

In[3]:=
MatrixForm[Flatten[data,1]]

Tomas Garza
Mexico City
----- Original Message ----- 
From: "nilaakash" <nilaakash at gmail.com>
To: mathgroup at smc.vnet.net
Subject: [mg53595]  Matrix Problem


> Hi,
>       I face a problem to get (3xn) matrix data.  Here I am giving a
> simple example.
> 
>        data = Table[{Sin[x], Cos[y], Sin[x] Cos[y]}, {x, 0, 3, 1},
> {y, 0, 2, 1}];
>        MatrixForm[data]
> 
> It prints a (4x3) block matrix.
> 
> Could anybody tell me how shall I get only 3 column matrix like
> following matrix ?
> 
>        Sin[0]          Cos[0]             Sin[0] Cos[0]
>        Sin[1]          Cos[0]             Sin[1] Cos[0]
>        Sin[2]          Cos[0]             Sin[2] Cos[0]
>        Sin[3]          Cos[0]             Sin[3] Cos[0]
>        Sin[0]          Cos[1]             Sin[0] Cos[1]
>        Sin[1]          Cos[1]             Sin[1] Cos[1]
>        Sin[2]          Cos[1]             Sin[2] Cos[1]
>        Sin[3]          Cos[1]             Sin[3] Cos[1]
>        Sin[0]          Cos[2]             Sin[0] Cos[2]
>        Sin[1]          Cos[2]             Sin[1] Cos[2]
>        Sin[2]          Cos[2]             Sin[2] Cos[2]
>        Sin[3]          Cos[2]             Sin[3] Cos[2]
> 
> Thanks.
> 
> Nilaakash
> 
>


  • Prev by Date: init.m problem, WinXP with 5.0.1.0
  • Next by Date: Re: Matrix Problem
  • Previous by thread: Matrix Problem
  • Next by thread: Re: Matrix Problem