Can't install matlab 2011a on Yosemite
No, you can't. MALAB R2014b is the only version that officially supports Yosemite. That said, I do have seen several workarounds that enable you to temporarily use the older-version MATLAB.