Answer
The magnet deflects charged particles.
Work Step by Step
The purpose of a magnet in a mass spectrometer is to deflect charged particles, thus separating them from neutral particles.
You can help us out by revising, improving and updating this answer.
Update this answerAfter you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.