MathGroup Archive 2014

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

Search the Archive

Re: Building a matrix


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