Effacer les filtres
Effacer les filtres

Function (in 2024a) to separate implicit directory parts from a folder string?

3 vues (au cours des 30 derniers jours)
Sven
Sven le 10 Juin 2024
Commenté : Sven le 11 Juin 2024
In MATLAB versions from 2014 to 2023b there was an internal utility function called matlab.internal.language.introspective.separateImplicitDirs
Its job was to identify portions of a folder structure that were implicit (like +packageName on the end of myFolder/+packageName).
That function no longer exists in 2024a. This is possibly due to the change in nomenclature from packages to namespaces. Does anyone know a replacement function? I could of course just copy the function from 2023b (it is just a set of regexp tasks) but pointing to the inbuilt version would be nice.
Thanks,
Sven

Réponse acceptée

Sourabh
Sourabh le 11 Juin 2024
Hey Sven,
It looks like this function has been moved and is now called 'matlab.lang.internal.introspective.separateImplicitDirs'.
Is there any particular reason you want to use the inbuilt version? It would be best to write your own function considering that these functions are meant for internal use only and MathWorks could change the function in future releases which could break your code.
Hope this helps!
  1 commentaire
Sven
Sven le 11 Juin 2024
Thanks!
Yes, the main reason is just to keep up with potential changes - I'd prefer to use an internal (but "correct" for every release) function that will error loudly when it changes (like now in 2024a) than to retain my own copy of a function from an earlier release and then have it fail silently (i.e., run but run incorrectly) if some syntax changes that my function isn't aware of like a new type of internal folder designation.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by