cat

cat(dim, X1, X2, ...) concatenates matrices X1, X2, ... along dimension specified by dim.

Examples

> X = [1 2 3; 4 5 6]#

	1            2            3
	4            5            6

> Y = [7; 8]#

	7
	8

> cat(2,X,Y)#

	1            2            3            7
	4            5            6            8

> Z = 7:9#

	7            8            9

> cat(1,X,Z)#

	1            2            3
	4            5            6
	7            8            9

Resources

See also

reshape | strcat