function [A] = hw2afn(r,c,v,m,n)

   for i = 1:n
      for j = 1:n
         A(i,j) = 0;
      end
   end

   for k = 1:m
      A(r(k),c(k)) = v(k);
   end

end
