get/set magnetic field value SW.FIELD(obj, B) If B is defined, it sets the magnetic field stored in sw object to B, where B is a 1x3 vector. B = FIELD(obj) The function returns the current B field value stored in obj. See also SW, SW.TEMPERATURE.