Linked Questions
23 questions linked to/from What is the most efficient way to add rows and columns to a matrix?
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 ...
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}}
...
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 ...
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:
...
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
...
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.
...
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 ...
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
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 ...
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.
...
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 ...
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
...
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 ...
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) ...
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 ...