Appending to the rows of a table

前端 未结 7 1825
南方客
南方客 2020-12-05 08:25

I have a two dimensional list and a one dimensional list. I would like to insert the 1D list into the 2D list as an additional column. For example:

array = {         


        
相关标签:
7条回答
  • 2020-12-05 09:12

    Here is my try using Join

    In[11]:= Join[array,List/@column,2]
    Out[11]= {{a,1,2,x},{b,2,3,y},{c,3,4,z}}
    

    It might be comparable to the fastest one among previously mentioned programs.

    0 讨论(0)
提交回复
热议问题