I want to concatenate 1st row of a matrix A to all the rows of another matrix B,then the 2 nd row of matrix A to all the rows of matrix B and so on.Both the matrices are of different order.ex A=[1] and B=[2 3; 3 2],ans C=[1 2 3;1 3 2]. Is it possible in matlab to do this ?

# MATLAB: [title removed]

concatenating 2 matrices with unequal dimensions

## Best Answer