Why is the MATLAB search path not the same as "pathdef.m" file after installing a support package in MATLAB R2024a?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 20 Okt. 2025 um 0:00
Beantwortet: MathWorks Support Team
am 5 Nov. 2025 um 17:00
I installed a support package. It adds the support package path to the MATLAB search path which can be confirmed using "pathtool" and using the "path" command. I closed MATLAB and opened it again and the path is still there, so it is persistent. However, it is not added to the "pathdef.m" file located at matlabroot/toolbox/local. I expect the "path" command to give the same path as in "pathdef.m" except those that are temporary as stated in the documentation page of "path".
Akzeptierte Antwort
MathWorks Support Team
am 20 Okt. 2025 um 0:00
There is no guarantee that MATLAB search path obtained using the "path" command and the "pathdef.m" file will match. The "path" documentation for MATLAB R2025a and later has been updated to reflect this behavior.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!