If you have a valid license (Academic, Professional, or Home), follow these steps to get a specific release like R2012a or R2012b: Installation Guide - MathWorks
If you have a MathWorks account with an active license that covers R2012a/b (e.g., an Individual or Campus-wide license): download fixed matlab 2012