Why do I receive an error message about a missing operator, semicolon, or white space in pathdef.m?

조회 수: 1 (최근 30일)
I receive the following error message when I start MATLAB:
??? Error: File: C:\MATLAB6p5\toolbox\local\pathdef.m Line: 13 Column: 23
Missing operator, comma, semicolon, or white space.
Error in ==> C:\MATLAB6p5\toolbox\local\matlabrc.m
On line 17 ==> matlabpath(pathdef);

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This problem is due to adding a directory containing a quote to the MATLAB path using the PATHTOOL.
You can solve the problem by opening pathdef.m using a general text editor (such as Notepad) and replacing the single quote in the path definition by two single quotes.
For example, assume you have added a directory matlabroot\work\edwin's to the MATLAB path using pathtool. Open matlabroot\toolbox\local\pathdef.m (where matlabroot is your root MATLAB installation directory) and replace:
matlabroot,'\work\edwin's;',...
with
matlabroot,'\work\edwin''s;',...
In the future, please try avoiding directory names that contain a quote.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by