Reference: augment
augment(M1, M2) returns the real or complex matrix composed of the real or complex matrices M1 and M2 side by side, if only they have the same number of rows. augment(M, v) returns the real or complex matrix composed of the real or complex matrix M with the real or complex vector v added to the right of M, if only M has as many rows as the dimension (number of entries) of v.