Magneto is not in the base roster — you get him through downloadable content on the PlayStation Store.
The same DLC pack adds Carnage, Psylocke, Cable, and Black Panther alongside him. Once purchased and installed, all five become selectable.
One caveat on the multiplayer side: those characters only work in online matches with other players who own the same content. If a friend has not bought the pack, you will not be able to bring Magneto into a game together.