If you have MathWorks MATLAB R2015a (x86 or x64) installed in your PC then you might be facing file association problem. All your previous MATLAB files won't be associated with new version of MATLAB and the supported file extensions won't be appearing in Default Programs option of Control Panel. Here I am providing you the solution for this problem.
1. First download these files:
- For 32-bit Users [Download Link (x86)] (This archive contains fileassoc.m, fileassoc.mexw32, fileassoc_mexw32.auth)
- For 64-bit Users [Download Link (x64)] (This archive contains fileassoc.m, fileassoc.mexw64, fileassoc_mexw64.auth)
2. Then Paste these 3 files to this location of your PC.
[YOUR_DRIVE]:\Program Files\MATLAB\MATLAB Production Server\R2015a\mcr\toolbox\matlab\winfun\private
3. Now, open MATLAB R2015a as an administrator and run the following code.
cwd=pwd; cd([matlabroot '\mcr\toolbox\matlab\winfun\private']); fileassoc('add',{'.m', '.mat', '.fig', '.p', '.mexw64', '.mlapp', '.mltbx', '.mldatx', '.req', '.mlappinstall', '.mlpkginstall', '.mdlp', '.slxp', '.mdl', '.slx', '.sltx', '.ssc', '.mn', '.mu', '.muphlp', '.xvc', '.xvz', '.sldd', '.slddc', ['.' mexext]}); cd(cwd); disp('Windows file associations changed. M, MAT, FIG, P, MEXW64, MLAPP, MLTBX, MLDATX, REQ, MLAPPINSTALL, MLPKGINSTALL, MDLP, SLXP, MDL, SLX, SLTX, SSC, MN, MU, MUPHLP, XVC, XVZ, SLDD & SLDDC files are now associated with MATLAB.')
4. Tada! All MATLAB files are associated with the program.
Note: This method is tested by me on Windows 8.1 x64.
Please do provide your feedback.
it is work
ReplyDeletetested on Windows 8.1 x64 and it is work.
ReplyDeletethank you!
It works on windows10 x64 :D
ReplyDeletetested on windows 10 x64 and it is work :D
ReplyDeletethanks so much
thaaaanks a loot. It's been driving me crazy for a week and your solution finally fixed it. I'm using win 10 x64.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI got this error:
ReplyDelete"Invalid MEX-file 'C:\Program Files\MATLAB\R2016a\mcr\toolbox\matlab\winfun\private\fileassoc.mexw64': The specified module could not be found."
Windows 10 x64 - Matlab 2016a
Even I am also getting this error:
ReplyDelete"Invalid MEX-file 'C:\Program Files\MATLAB\R2016a\mcr\toolbox\matlab\winfun\private\fileassoc.mexw64': The specified module could not be found."
Windows 10 x64 - Matlab 2016a
Is there any solution for it?
Hi
DeleteI have this problem too !!!
Did you find any solution to solve this error ???
The best gambling sites to play slot games
ReplyDeleteIf you want to win real money or play the best gambling sites luckyclub and online slot games, then you have to be a regular customer. Check our list of top
The good news about a good casino: Casinos with big bonuses
ReplyDeleteIf you're playing slots, 공주 출장샵 you need 출장마사지 a good casino to make bets, and for those 양주 출장샵 that are playing casino games for real 양산 출장안마 money. This casino 과천 출장마사지