Why does using the function GENPATH on a folder that contains packages such as "+PackageFolder" produce string that causes a warning when used with the function ADDPATH?

10 vues (au cours des 30 derniers jours)
I have generated a string using GENPATH. Since it also adds the package folders to the string, this causes the ADDPATH function to show the following warning:
Warning: Package directories not allowed in MATLAB path:
C:\Temp\Test\+PackageFolder.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 27 Juin 2009
The ability for the function GENPATH to ignore package folders as it does with class (@ClassFolder) and private folders is not available in MATLAB R2008a.
If the string that is generated by GENPATH contains package folders, a warning will be shown if the string is used as the argument for the function ADDPATH.
No workaround is needed since ADDPATH will ignore the package folder. All preceding and subsequent folders in the string will be added to the path normally.

Plus de réponses (0)

Catégories

En savoir plus sur Search Path dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2008a

Community Treasure Hunt

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

Start Hunting!

Translated by