[matlab] m 파일 실행 시, 맵트랩에 연결되지 않을때
증상: m 파일이 실행되지 않거나, 연결 프로그램이 없는 경우.
연결 프로그램을 matlab.exe로 지정하면 클릭할때마다 새로운 matlab 실행.
이런 경우 아래의 솔루션 이용.
다운로드 경로:
http://kr.mathworks.com/matlabcentral/fileexchange/51165-matlab-file-association-fix
정식 사이트가서 다운로드하는 걸 추천해드립니다. 첨부파일도 여기서 받은겁니다.
다운로드 이후 맵트랩에서 4)과 같은 명령어로 실행하면 레지스트 파일이 생성됩니다.
실행하시고, m파일 오른쪽 클릭-> 속성 -> 연결 프로그램에서 맵트랩 프로그램이 생성되어 있을 것입니다.
======================================================
A bit more help on how you should do this.
1)Download the file
2)Extract the file @ C:\Program Files\MATLAB\R2016a\mcr\toolbox\matlab\winfun\private . Change the R2016a according your version of course.
3)Navigate inside matlab to the same dir as above. (Run matlab as admin also)
4)Execute the command associateFiles('add',{'.m','.mat','.fig','.p','.mdl',['.' mexext]});
5)Take the .reg file it will create copy paste on desktop and run it.
6 Comments
Thanks