could you help me with the following problem.
I would like to compare matrix A and B (both with same dimension), element by element, and produce a matrix C such that
C(i,j) = 1, if A(i,j) >= B(i,j) and C(i,j)=0 if A(i,j) < B(i,j)
How can I duplicate a 1-dimensional vector with m elements n times to make it a m x n matrix?
Thank you very much