MathGroup Archive 2005

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

Search the Archive

Re: How to remove curly brackets and arrow symbols from a list.


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.