matrix_augment INDEX

MATRIX_AUGMENT _ _ _ _ _ _ _ _ _ _ _ _ operator

Matrix augment, matrix stack:

syntax:

matrix_augment{<matrix\_list>}

(If you are feeling lazy then the braces can be omitted.)

<matrix\_list> :- matrices.

matrix_augmentsticks the matrices in <matrix\_list> together horizontally.

matrix_stacksticks the matrices in <matrix\_list> together vertically.

examples:



matrix_augment({A,A}); 

  [1  2  3  1  2  3]
  [                ]
  [4  5  6  4  5  6]
  [                ]
  [7  8  9  7  8  9]



matrix_stack(A,A); 

  [1  2  3]
  [       ]
  [4  5  6]
  [       ]
  [7  8  9]
  [       ]
  [1  2  3]
  [       ]
  [4  5  6]
  [       ]
  [7  8  9]

Related functions: augment_columns, stack_rows, sub_matrix.