function z=third(r,c,v) % THREE creats an r by c matrix filled with v values % r is the numberof rows and c is the number of columns z=ones(r,c)*v; end