Is it possible to rename a protected .p function?
1 次查看(过去 30 天)
显示 更早的评论
Question in the title.
More information:
I am having compatibility issues with a protected (.p) third party function that is called by other third party functions. A workaround would be to create my own version of the function that handles the issues, then call the original function. Unfortunately, due to Matlab's function precedence, and the fact that the function indirectly calls itself, I haven't been able to find a way to do this, as outlined here . The only other way I can think to workaround this is by renaming the original function, but since it is protected I don't see an obvious way to do this.
2 个评论
dpb
2015-6-26
Can you not write a "wrapper" function that does whatever then calls the 3rd party function? That would, in essence, be the same as renaming the existing one it would seem.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Scope Variables and Generate Names 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!