Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.2K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Join Lists or arrays

Posted 5 years ago

Hi Guys I want to join these list as example

a ={1,2,4,5};
b={5,5,5,5};
c= should be {a,b} i want
c= {{1,5},{2,5},{4,5},{5,5}};

Thank you.

POSTED BY: Sheng Dai
a = {1, 2, 4, 5}; b = {5, 5, 5, 5};
c = Transpose[{a, b}]

(*{{1, 5}, {2, 5}, {4, 5}, {5, 5}}*)

Regards M.I.

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