The change in dimension of a body when subjected to a magnetic field. A magnetostrictive [[transducer]], for example, is one which converts electromagnetic energy to mechanical energy and vice versa.