2k views

### appending element to sub list [duplicate]

I have a list of the form: lstA = { { {"a","b"}, -1.5}, { {"c","d"}, -2 } } I wanto to add another value to each sublist that ...
• 2,264
1 vote
3k views

### Combine two lists [duplicate]

I have a basic question about list-manipulation. I have two lists: l1 = {{1, 1}, {2, 2}, {3, 3}} l2 = {a, b, c} The desired outcome is: {{a,1,1},{b,2,2},{c,3,3}} ...
• 2,341
3k views

### Adding extra column to an existing table [duplicate]

Suppose I have following table- 1 5 8 2 6 9 3 7 10 0 0 0 Now, I want to add another column by exporting a data file. Suppose contents of that ...
• 347
1k views

### A Faster way to combine two Lists of different structures into one of a different structure [duplicate]

I have the following two lists (each containing over 500,000 elements). Here is a sample: ...
• 33.2k
1k views

### Adding columns to an existing table [duplicate]

I have two tables that look something like- 39.3278 2990.3 4503.98 0 -1859.37 35.7833 3014.8 1281.98 0 -3497.95 and ...
• 347
1k views

### How to merge 2 columnar matrices into a row matrix? [duplicate]

if i have two columnar matrices A,B . then how can i merge both matrices into a row matrix. ...
180 views

### Merge two lists for List3DPlot [duplicate]

I have a two lists: list1 = {{x1, y1}, {x2, y2}, {x3, y3}, {x4, y4}, {x5, y5}} and list2 = {z1, z2, z3, z4, z5} and I want to ...
• 119
72 views

### How to combine two matrices.? [duplicate]

let A, B are any 4 by 2 Matrices , i want to know whether it is possible to obtain a 4 by 4 matrix by using equation A=B Thanks in advance
75k views

### Elegant operations on matrix rows and columns

Question The Mathematica tutorial has a section 'Basic Matrix Operations', describing operations like transpose, inverse and determinant. These operations all work on entire matrices. I am missing a ...
• 7,797
2k views

### Riffle but not quite

Given the two lists below, is there an in-built command or otherwise neat way of accomplishing the desired output. ...
• 3,416
667 views

### How to join two tables column-wise simply and quickly?

Consider the following tables: ival = 10^6; Tab1 = Table[{x, y}, {x, 1, ival, 1}, {y, 1, 6, 1}]; Tab2 = Table[{x, y1}, {x, 1, ival, 1}, {y1, 7, 8, 1}]; The values ...
• 5,895
24k views

### How to add an extra column to a current matrix (list)? [duplicate]

a = {{-800, 1712}, {-801, 1713}, {-806, 1832}} TableForm[a] b = a[[All, 2]] - Min[a[[All, 2]]] How do I make a new matrix (list) whic looks like this ...
• 4,996
5k views

### Building matrices by attaching vectors (columns) and matrices

Having the need to attach a column to a matrix or to join matrices to make longer rows is an operation that I use very frequently and I find the Join function ideal ...
• 9,868
1k views

### Efficient method for Inserting arrays into arrays

This is strongly related to the following Questions: Looking for a way to insert multiple elements into multiple positions simultaneously in a list Building matrices by attaching vectors (columns) ...
• 1,867