Astrophysical measurement of the equation of state of neutron star matter