MathGroup Archive 2009

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

Search the Archive

Re: Remove quotes from Cell Expression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99561] Re: Remove quotes from Cell Expression
  • From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
  • Date: Fri, 8 May 2009 00:14:08 -0400 (EDT)

Yes, Robert,

a function like the following:

In[21]:=   f[x_String] := ToExpression[x];
           f[x_] := x;
           Map[f, {{"a", b}, {c, d}}]

can do the job for you.
Alexei

Can someone show me how to write the list m1 to a notebook without the quotes showing?

m1 = {{"a",b},{c,d}};
nb = CreateDocument[];
NotebookWrite[nb, Cell[ToBoxes@Grid[m1],"Text"]]

The expression below gives the right result so there is something missing in my limited understanding of Cell expressions. 

Grid@m1


Thanks
Robert

-- 
Alexei Boulbitch, Dr., habil.
Senior Scientist

IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern
Luxembourg

Phone: +352 2454 2566
Fax:   +352 2454 3566

Website: www.iee.lu

This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.




  • Prev by Date: Re: TraditionForm Appears to be Inconsistent
  • Next by Date: Re: TraditionForm Appears to be Inconsistent
  • Previous by thread: Re: Remove quotes from Cell Expression
  • Next by thread: Re: Remove quotes from Cell Expression