Message Boards Message Boards

0
|
5846 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Creating Table Elements as Strings Without Quotes

Posted 10 years ago
POSTED BY: Bob Stephens
2 Replies

This will do it

In[1]:= myData = {{"Silicon Image", "address-1", "address-2", 
    "address-3"}, {"a version", "value-1", "value-2", 
    "value-3"}, {"another version", "value-4", "value-5", "value-6"}};

In[6]:= Clear[stephensTab]
stephensTab[m_?MatrixQ] := Module[{mLoc = m},
  Grid[mLoc, Alignment -> Center, Spacings -> {2, 1}, Frame -> All, 
   ItemStyle -> "Text", 
   Background -> {{LightBlue, None}, {LightYellow, None}}]
  ]

In[8]:= stephensTab[myData]
POSTED BY: Udo Krause
Posted 10 years ago
POSTED BY: Bob Stephens
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract