Here's "Tony's trick," attributed to Tony Booer of Schlumberger:
To initialize a matrix with values "a" in the first row and values "b" in the second row, do the following:
[a(1,ones(1,m)) ; b(1,ones(1,m))]