Since the magnetization of a sample at a given location depends on the " total " magnetic field at that point, the demagnetization factor must be used in order to accurately determine how a magnetic material responds to a magnetic field . ( See magnetic hysteresis .)