Restore MATLAB file association after reinstalling the system
After the system is reinstalled, if the MATLAB installation target is not activated, the MATLAB does not need to be re-installed. (For the same reason, you can move the MATLAB installation target)
Just re-associate the Matlab-related files.
Run the following command in the MATLAB command window.
CWD = PWD;
CD ([maid/toolbox/Matlab/winfun/private]);
Fileassoc ('add ',{'. m ','. mat ','. fig ','. P ','. mdl ',['. 'mext]}); % highlights
CD (CWD );
Disp ('changed Windows File Associations. Fig, M, mat, MDL, MEX, andp files are now associated with MATLAB .')
Or
1. Open MATLAB and run help
2. search utility to change Windows File Associations in the Help window.
3. Find the corresponding description of utility to change Windows File Associations.
4. Click the desired file association.
From: http://www.eefocus.com/czzheng/blog/10-01/183657_c7e69.html
For more information, see the help documentation of MATLAB:
Starting the MATLAB program on Windows platforms->
Associating files with Matlab on Windows Platforms
Http://www.mathworks.es/help/techdoc/matlab_env/f8-8880.html#f8-28791