Linked Questions

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
45 votes
5 answers
24k views

What is the most efficient way to add rows and columns to a matrix?

Say I have a matrix m and a vector v. ...
Andy Ross's user avatar
  • 19.3k
19 votes
12 answers
1k views

Thread over list in different levels

I have these two lists, both with the same length in the first dimension: ...
Murta's user avatar
  • 26.3k
28 votes
3 answers
21k views

How do you concatenate matrices? And how do you make block matrices?

This is pretty trivial to do in Matlab, but I have not seen a function for it in Mathematica. Here is how you can do it with Join and ...
luke wendt's user avatar
6 votes
6 answers
719 views

Insert all elements from one matrix into another

I have two matrices $A$ and $B$ which are the same size. Each element of $A$ is a list of numbers. Each element of $B$ is just a number. How do I insert each element of $B$ into the corresponding list ...
Tom's user avatar
  • 3,416
10 votes
6 answers
699 views

Join a list with {6, 6, 2} dimensions with a list {6, 6} dimensions

...
SPIL's user avatar
  • 657
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
4 votes
4 answers
1k views

How to multiply lists of data?

Let two lists of data, say lst1={{x1,y1},{x2,y2},...,{xn,yn}} lst2={{x1,z1},{x2,z2},...,{xn,zn}} I need to construct a third list ...
Patrick El Pollo's user avatar
4 votes
1 answer
2k views

How do I put matrices next to each other? [duplicate]

So I want to be able to put matrices "next to each other", or in other words if I have two matrices $A$ that is $n\times k$ and $B$ that is $n\times m$, I want to be able to create a matrix $C$ that ...
Sertii's user avatar
  • 135
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