A conjecture of Erdos from 1965 suggests the minimum number of edges in a k-uniform hypergraph on n vertices which forces a matching of size t, where t \leq n/k. Our main result verifies this conjecture asymptotically, for all t < 0.48n/k. This gives an approximate answer to a question of Huang, Loh and Sudakov, who proved the conjecture for t \leq n/3k^2. As a consequence of our result, we extend bounds of Bollobas, Daykin and Erdos by asymptotically determining the minimum vertex degree which forces a matching of size t < 0.48n/(k-1) in a k-uniform hypergraph on n vertices. We also obtain further results on d-degrees which force large matchings. In addition we improve bounds of Markstrom and Rucinski on the minimum d-degree which forces a perfect matching in a k-uniform hypergraph on n vertices. Our approach is to inductively prove fractional versions of the above results and then translate these into integer versions.