Linked Questions

3 votes
3 answers
1k 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 ...
olliepower's user avatar
  • 2,224
1 vote
1 answer
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}} ...
GambitSquared's user avatar
3 votes
2 answers
2k 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 ...
solphy101's user avatar
  • 337
4 votes
1 answer
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: ...
RunnyKine's user avatar
  • 32.9k
2 votes
1 answer
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 ...
solphy101's user avatar
  • 337
0 votes
1 answer
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. ...
M.M Umber's user avatar
0 votes
5 answers
177 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 ...
lambertmular's user avatar
0 votes
0 answers
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
M.M Umber's user avatar
201 votes
14 answers
74k 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 ...
sjdh's user avatar
  • 7,607
9 votes
11 answers
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. ...
Tom's user avatar
  • 3,366
7 votes
4 answers
540 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 ...
John Taylor's user avatar
  • 4,642
8 votes
1 answer
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 ...
Chen Stats Yu's user avatar
7 votes
2 answers
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 ...
VLC's user avatar
  • 9,798
8 votes
4 answers
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) ...
Pam's user avatar
  • 1,867
5 votes
2 answers
2k views

Labeling a grid

I have m = {{0, -1, -2, -3, -4}, {1, 0, -1, -2, -3}, {2, 1, 0, -1, -2}, {3, 2, 1, 0, -1}, {4, 3, 2, 1, 0}}; And a grid ...
pyler's user avatar
  • 153

15 30 50 per page