Restoring MATLAB file associations & registering MATLAB as a COM server

Posted on Sep 27, 2011

In the MATLAB command window,

cd([matlabroot '\toolbox\matlab\winfun\private']); fileassoc('add',{'.m','.mat','.fig','.p','.mdl',['.' mexext]});

In the Windows command prompt,

\bin\matlab.exe -regserver