Experimental determination of the dispersion relation of magnetosonic waves