How can I force which shadowed function will be called without using packages?
Mostrar comentarios más antiguos
I have a function with the same name as a function in one of MATLAB's add-on toolboxes. I'm not able to change the library this function is part of to a package. I want to be able to specify which function will be called (either the library version or the one in the toolbox). One solution is to remove the library/toolbox from the MATLAB path temporarily, but ideally, this would be handled programatically with both still remaining on the MATLAB path. How can I do this?
4 comentarios
Jan
el 24 de Feb. de 2022
Are you talking of a builtin function or an M-file of Matlab's toolboxes?
Kyle Padilla
el 24 de Feb. de 2022
Rik
el 24 de Feb. de 2022
It sounds as if you're talking about a third party toolbox. Could you confirm this?
And can you show the output of this?
clc,which $FunctionName$ -all
Kyle Padilla
el 24 de Feb. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!