Go for 64-bit version. 1. Download and install Microsoft .Net Framework 4.5(dotNetFx45_Full_setup.exe) [ignore if you already have] 2. Uninstall Microsoft Visual C++ 2010 (both x64 and x86) from control panel. 3. Download(GRMSDKX_EN_DVD.iso) and install Windows SDK 7.1 (it is the compiler) It will restore Microsoft Visual C++ 2010 on ur pc. Steps 1 & 2 are necessary for 3. 4. Run Matlab as administrator. 5. type: mex -setup Follow steps to set SDK as your default compiler. 6. Open Photoshop. 7.Run Matlab as administrator and run tests.