Element-wise multiplication is done with the .* operator (with the dot). E.g.,
data = Xtrain .* Ytrain;
The operation data(:) will result in a column vector.
The zeros(rows,columns) will result in a 0's matrix of the requested size.
Then use the square brackets [ ] to concatenate them into a single matrix.
result = [data(:) zeros(rows,columns)];