필터 지우기
필터 지우기

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

조회 수: 3 (최근 30일)
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

채택된 답변

Sourabh
Sourabh 2024년 6월 11일
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
Sven
Sven 2024년 6월 11일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by