Why do I receive an error message about a missing operator, semicolon, or white space in pathdef.m?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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);
Risposta accettata
MathWorks Support Team
il 27 Giu 2009
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!