When clicked on Matlab icon does not start Matlab

조회 수: 3 (최근 30일)
Cem
Cem 2012년 3월 23일
댓글: Walter Roberson 2017년 2월 18일
Hello,
Lately when I click on the Matlab icon on the desktop, it does not start Matlab, but opens Matlab.bat in Notepad! If I run the command in Target in the icon: "C:\Math\MATLAB\R2007a\bin\matlab.bat -sd $documents\MATLAB" under a command window, Matlab works fine. What is the problem?

채택된 답변

Jason Ross
Jason Ross 2012년 3월 23일
Check your file associations. In Windows 7, go to the Control Panel, type in "Associations" in the "Search" field (upper right-hand corner) and then select "Change the file type assciated with a file extension". When you find the .bat file, it should say "Unknown application", and I'm betting yours says "Notepad".
AFAIK the only way to clear an association is to edit the Registry. This is the procedure for Windows 7:
  댓글 수: 2
Cem
Cem 2012년 3월 23일
Hello Jason,
You are right. I deleted the registry key and it worked! Thank you.
Jason Ross
Jason Ross 2012년 3월 23일
You're welcome!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Anvinder  Singh
Anvinder Singh 2017년 2월 18일
Mine says Unknown application only but still it doesnt work.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by