Tohoku University in Japan has successfully developed a shape-memory magnesium alloy.