The New York Yankees have signed three-time All-Star Matt Carpenter, adding a veteran infielder to a roster that has been beset by injuries.