An electrode for measuring electrical activities of a living body and/or for outputting electrical signals into the living body, with an electrically insulated and flexible line, which is connected fixedly or releasably to a distally arranged and electrically conductive electrode tip. The electrode tip is designed for insertion into the body. The electrode tip includes at least one crystalline shape-memory material, and the electrode tip is flexible on account of the shape-memory material. The shape-memory material of the support structure is formed at least partially by physical vapour deposition, in such a way that precipitations in the shape-memory material have a maximum size of 500 nm.