Replies: 1 comment
-
I didn't realize that class constructors have precedence over regular functions. According to this doc page, this is indeed the case:
So, just putting the DIPimage directory first in the path is not enough to always select DIPimage functions, if there exists a class anywhere in the path that has the same name of the function. That is... unfortunate. That makes it even harder for 3rd party toolbox authors to maintain their toolboxes. They basically expect us to rename our functions every time they add a class to any of the official toolboxes? I think the best you can do is edit your path manually once (using I agree that a GUI that allows you to select which toolboxes you want enabled by default would be very useful for larger institutions that subscribe to many toolboxes that you personally don't have a use for. I hope they build something like that in. |
Beta Was this translation helpful? Give feedback.
-
In some systems (e.g. where all MATLAB Toolbox functions got installed by the admin) MATLAB could shadow DIPimage functions and the user has no direct possibilities to uninstall toolboxes causing trouble (in case they are not needed).
For some reason the Tweak discussed here https://diplib.org/diplib-docs/sec_dum_faq.html#sec_dum_faq_usage_select does not work.
An alternative to the "changing folder approach" each time before the function is called is removing the path to Toolbox functions which are not needed.
This can be achieved by adding, e.g.,
to the
startup.m
.This resolved my issue.
To address the issue of Provide User control of MATLAB Toolboxes, which where installed by the admin I got in contact with MATLAB Technical Support and requested:
MATLAB Technical Support replied
Since such tool is not available (yet), MATLAB Technical Support recommended the following alternative information:
I hope this information help.
Please see also Matlab: DIPimage shadows Matlab toolbox functions
Beta Was this translation helpful? Give feedback.
All reactions