function A = rownum(r1,c1,r2,c2) % create a matrix which is r2-r1+1 x c2-c1+1, in which all % entries in a row are the same, and range from r1 to r2.