launching MATLAB from the context menu (Windows 7)

조회 수: 1 (최근 30일)
Naor Movshovitz
Naor Movshovitz 2011년 9월 24일
For several years I have been using the following hack, in windows, for convenience. Add the key:
HKEY_CLASSES_ROOT\*\shell\MATLABHere\command
and set the value to
matlab.exe
With this, I was able to right-click on any file and launch MATLAB with that file's directory being the current directory. Just a simple trick for saving a fraction of a second several times a day.
This hack doesn't work since I installed R2011b. Any ideas why? I can still run MATLAB by opening a Dos window in any directory and typing matlab.
Thanks (Windows 7 64 bit, R2011b)

채택된 답변

Naor Movshovitz
Naor Movshovitz 2011년 10월 7일
Found it. Apparently previous versions of MATLAB installers added the full path of the MATLAB runtime to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
automatically, while the newer version didn't. So the above hack would work if we use the full path instead of just "matlab.exe"

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by