The cosmic-ray antiproton flux between 3 and 49 GeV