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: How to remove curly brackets and arrow symbols from a list.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58219] Re: How to remove curly brackets and arrow symbols from a list.
  • From: "dkr" <dkrjeg at adelphia.net>
  • Date: Thu, 23 Jun 2005 05:33:56 -0400 (EDT)
  • References: <d9av83$10a$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

mat={{0,{w->a},{w->-a}},{1,{w->b},{w->-b}},{2,{w->
            c},{w->-c}}};
In[7]:=
mat/.{(w->y_)}:>y
Out[7]=
{{0,a,-a},{1,b,-b},{2,c,-c}}

TableForm@%  yields
0  a  -a
1  b  -b
2  c  -c


  • Prev by Date: Question about Plotting with boundary constriants
  • Next by Date: Pattern Matching
  • Previous by thread: Re: How to remove curly brackets and arrow symbols from a list.
  • Next by thread: Re: How to remove curly brackets and arrow symbols from a list.