필터 지우기
필터 지우기

Unable to run the 'restoredefaultpath' function

조회 수: 14 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2023년 1월 30일
답변: MathWorks Support Team 2023년 1월 31일
When trying to run the 'restoredefaultpath' command in the MATLAB Command Window, the following error message is printed:
"Unable to run the 'restoredefaultpath' function, because it is not supported for this product offering."
In addition, there are several warning messages printed in the MATLAB Command Window upon startup, all along the lines of:
"Warning: Function <function name> has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict."
How do I resolve these errors?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2023년 1월 30일
This error is likely because the path to the MATLAB installation is corrupted. This may have occurred due to multiple MATLAB installations with folders migrated from another MATLAB installation using 'addpath' and 'savepath'.
The following are some potential workarounds:
  1. Check the MATLAB installation location and the contents of 'toolbox\local\pathdef.m' and see if there are entries from another MATLAB installation. If so, manually remove these entries and try restarting MATLAB.
  2. Rename the current MATLAB folder to a different name (for example, 'MATLAB_old'). Then restart MATLAB. This should create a new MATLAB folder.
  3. Re-install MATLAB.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by