MathGroup Archive 2014

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

Search the Archive

Re: Building a matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132742] Re: Building a matrix
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Mon, 19 May 2014 20:16:05 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20140519060351.582BA6A9A@smc.vnet.net>

In[1]:= m={0,0,0};n={1,2,3};
In[5]:= {Join[n,m,m],Join[m,n,m],Join[m,m,n]}Out[5]= {{1,2,3,0,0,0,0,0,0},{0,0,0,1,2,3,0,0,0}, {0,0,0,0,0,0,1,2,3}}
-Tomas

> From: brunocam at libero.it
> Subject: Building a matrix
> To: mathgroup at smc.vnet.net
> Date: Mon, 19 May 2014 02:03:51 -0400
>
> Given:
>
> m = [0,0,0}
> n = {1,2,3}
>
> how can I get a function to give:
>
> {{1,2,3,0,0,0,0,0,0}, {0,0,0,1,2,3,0,0,0}, {0,0,0,0,0,0,1,2,3}}
>
> ???
>
> Bruno
>



  • Prev by Date: Re: Building a matrix
  • Next by Date: packages...
  • Previous by thread: Re: Building a matrix
  • Next by thread: Re: Building a matrix