Group Abstract Group Abstract

Message Boards Message Boards

1
|
8.9K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Making a table from two lists

Posted 9 years ago
POSTED BY: Luis Morales
3 Replies

Or, in this case:

Thread[{{1, 2, 3, 4}, {11, 12, 13, 14}}]

or

MapThread[List, {{1, 2, 3, 4}, {11, 12, 13, 14}}]

or

Partition[Riffle[{1, 2, 3, 4}, {11, 12, 13, 14}], 2]

or

Table[{{1, 2, 3, 4}[[i]], {11, 12, 13, 14}[[i]]}, {i, 4}]

really there are so may ways, I can give you another 10....

POSTED BY: Sander Huisman
Posted 9 years ago

Amazing!!! Now that I think about it, that makes perfect sense lol. Thank you.

POSTED BY: Luis Morales
Transpose[{{1, 2, 3, 4} , {11, 12, 13, 14}}]

output

POSTED BY: David Gathercole
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard