previously accessible file is inacessible.
조회 수: 9 (최근 30일)
이전 댓글 표시
Hello,
I had removed file/s strsplit.m and a couple of others from matlab's core directory based on one of the posts I read a couple of months ago as it was creating a java exception error (something I recall vaguely). But now, I get an irritating pop-up (kind of) everytime I click on the Matlab command window/variables window. Could someone please help me fix it?
Please refer to the image: it reads previously accessible file is now inaccessible workspacefun 329. I am on linux OS, matlab 2016a.
Thanks,
댓글 수: 3
Stephen23
2017년 10월 30일
편집: Stephen23
2017년 10월 30일
"I had removed file/s ... from matlab's core directory..."
Ouch! You should never delete/rename/edit/... any files in the MATLAB installation directories. Who told you to do that? Perhaps this was the advice which you (incorrectly) followed:
The advice given in that thread was to remove any user functions with those names. You removed the wrong files, because you have removed the installed MATLAB files, which was a really really bad idea. All kinds of dependent functions could be affected when you remove some random file from the MATLAB toolboxes, leaving you with unpredictable behavior of your installed MATLAB.
Oh well, time to reinstall MATLAB!
채택된 답변
Jan
2017년 10월 30일
편집: Jan
2017년 10월 30일
I had removed file/s strsplit.m and a couple of others from matlab's
core directory
This is really scary. This idea is really off track. Matlab cannot not work properly, if you remove essential files from its toolbox. You cannot solve a problem by removing the tools, but surely Matlab must crash afterwards.
General rule: *Never* remove files from Matlab's toolboxes.
It is a good idea to work with user privileges only, such that you cannot even modify Matlab's function by accident.
I do not believe that the existence of strsplit.m in the toolbox path causes a "Java exception error". Please post the code, which causes the error and a complete copy of the error message. Then it might be possible to give a better advice than destroying the toolbox folders.
First of all, restore the removed files.
Afterwards restore the hash values of the path:
rehash toolboxcache
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!