up previous next
MatConcatHor

create a simple block matrix
Syntax

MatConcatHor(A:LIST,MAT, B:LIST,MAT):MAT

where A and B have the same number of rows


Description
This function creates a simple block matrix. The two entries are matrices (or lists cast-able to a matrix) with the same number of rows. MatrixConcatHor(A,B) will return a matrix of the form
                | A B |


Example
A := [[1,2,3], [4,5,6]];
B := [[101,102], [103,104]];

MatConcatHor(A,B);
Mat([
  [1, 2, 3, 101, 102],
  [4, 5, 6, 103, 104]
])
-------------------------------


See Also