A medical implant and an electrode device for a medical implant, wherein the electrode device includes a distal end, a proximal end, and an electric transmission line that extends between the distal end and the proximal end. The transmission line includes at least one adaptive element. The at least one adaptive element includes a magnetodielectric material, which, under the action of a magnetic field, changes one or more of its electric and magnetic properties.