If it was Ca or Mg deficiency, it would be Ca deficiency. But those brown spots don't have the classic Ca deficiency look. What soil, nutes, and what are you spraying on them, ect?
Post at least one picture of the whole plant, and include in that pic leaves that have the symptom and leaves that do not. Then closeups, as needed to show the issue.