# Concatenating matrices

Hello everyone,

I am starting using opencv, I would like to ask if there are functions to concatenate matrices, e.g. (matlab notation):

given matrices A = [1,2,3; 4,5,6], and B = [11,22,33; 44,55,66], I would like to produce the matrix H = [1,2,3,11,22,33; 4,5,6,44,55,66] (horizontal concatenation), and the matrix V = [1,2,3; 4,5,6; 11,22,33; 44,55,66] (vertical concatenation)

does openCV provide me the way to do it easily?

Thanks a lot for your kind help, GP