The Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: associating .m files with matlab
Replies: 47   Last Post: Jul 28, 2015 2:22 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
alvinsa

Posts: 1
Registered: 9/9/13
Re: associating .m files with matlab
Posted: Sep 9, 2013 9:04 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello

I did not find the complete solution to my case here, so 1st post to give my feedback on this subject (but I was close to the solution thanks to you, thank you very much ;) ).
Finally, as I expected, it is not a direct matlab problem but a Windows one. I found a clue to the solution here : http://support.microsoft.com/kb/258860/en
Indeed, it seems that Windows can do several associations with any extension file. The "fileassoc" command remove only extensions in folder HKEY_LOCAL_MACHINE/software/classes or in HKEY_CLASSES_ROOT, but association can also be performed in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts for example, and it takes the lead !

So finally, in my case, the steps I followed to be sure to perform a correct association are :
1 - use fileassoc('delete', {'.m','.mat','.mdl','.mdlp','.fig','.p','.mlprj','.mexw32'})
2 - delete (manually) the association still present in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExt (start=>execute=>regedit to edit registry, admin rights should be needed)
=> maybe association could be found in other locations, be careful to find all of them !
3 - use fileassoc('add', {'.m','.mat','.mdl','.mdlp','.fig','.p','.mlprj','.mexw32'})

Step 1 and 3 are perfectly described by other people in this group, so I do not give more details. I did not find step 2 anywhere (or I missed it) and it was the main issue to me.

=> if it did not work for you, that could be another association in your registry exist somewhere, you have to find it and delete it in step 2. Good luck :)
=> uninstall completely matlab + reboot of PC + complete install of maltlab did not work ! Association was still present in Explorer...
=> problem still present even using dedicated tools that should clean registry ! (I used CCleaner without a good result :( ). So, manual action seems to be required.

My config : Windows XP, matlab 2011b
My problem : bad association with .mdl files, matlab was opened but the simulink model did not open.

I hope that it will help people that experienced the same issue than me.
Regards.


Date Subject Author
10/9/10
Read associating .m files with matlab
nishant
10/9/10
Read Re: associating .m files with matlab
ImageAnalyst
10/9/10
Read Re: associating .m files with matlab
Mark Shore
9/10/13
Read Re: associating .m files with matlab
Zhanhong
10/9/10
Read Re: associating .m files with matlab
CHEW YEONG
10/9/10
Read Re: associating .m files with matlab
Mark Shore
10/10/10
Read Re: associating .m files with matlab
Steven Lord
10/10/10
Read Re: associating .m files with matlab
CHEW YEONG
1/4/11
Read Re: associating .m files with matlab
Jonathan
1/5/11
Read Re: associating .m files with matlab
Jonathan
1/19/11
Read Re: associating .m files with matlab
Jesse Sipple
1/19/11
Read Re: associating .m files with matlab
Jonathan
2/21/11
Read Re: associating .m files with matlab
grafikon
3/6/11
Read Re: associating .m files with matlab
Muhammad Ali
3/6/11
Read Re: associating .m files with matlab
grafikon
4/3/11
Read Re: associating .m files with matlab
Mammar
11/8/11
Read Re: associating .m files with matlab
Chad
11/8/11
Read Re: associating .m files with matlab
Steven Lord
11/18/11
Read Re: associating .m files with matlab
vomov
2/9/12
Read Re: associating .m files with matlab
neiho
2/21/12
Read Re: associating .m files with matlab
Amir
3/15/12
Read Re: associating .m files with matlab
Godzilla
3/16/12
Read Re: associating .m files with matlab
Steven Lord
3/15/12
Read Re: associating .m files with matlab
Godzilla
5/2/12
Read Re: associating .m files with matlab
dick mini
5/25/12
Read Re: associating .m files with matlab
Gordon
6/11/12
Read Re: associating .m files with matlab
ahahah
6/11/12
Read Re: associating .m files with matlab
Steven Lord
6/12/12
Read Re: associating .m files with matlab
vomov
6/15/12
Read Re: associating .m files with matlab
ahahah
11/25/12
Read Re: associating .m files with matlab
Johannes
11/27/12
Read Re: associating .m files with matlab
Steven Lord
11/28/12
Read Re: associating .m files with matlab
Wayne
11/28/12
Read Re: associating .m files with matlab
vomov
1/28/13
Read Re: associating .m files with matlab
Matt H
2/13/13
Read Re: associating .m files with matlab
Jesse Sipple
4/21/13
Read Re: associating .m files with matlab
Zack
2/8/13
Read Re: associating .m files with matlab
Mohamed Talaat Harb
3/14/14
Read Re: associating .m files with matlab
Salvatore
5/2/13
Read Re: associating .m files with matlab
zemerovingian@gmail.com
9/9/13
Read Re: associating .m files with matlab
alvinsa
9/9/13
Read Re: associating .m files with matlab
Yair Altman
8/14/14
Read Re: associating .m files with matlab
Paul
3/12/15
Read Re: associating .m files with matlab
Diego
7/28/15
Read Re: associating .m files with matlab
John
3/15/14
Read Re: associating .m files with matlab
Muhammad Rehan Abbasi
4/17/14
Read Re: associating .m files with matlab
kondiik@gmail.com
4/22/14
Read Re: associating .m files with matlab
s183114

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.