- Change the current folder.
- Move or remove folders on the search path.
- Rename or move files.
- Specify the full path or partial path to the file that you want.
Two functions with the same name - how to directly call one of both
156 次查看(过去 30 天)
显示 更早的评论
I use the image processing toolbox and another toolbox that both have the function watershed. Is there a way to explicitly call one of them with both having on the search path?
0 个评论
采纳的回答
Laura Proctor
2011-3-14
To address a name conflict, try one of the following:
1 个评论
Jan
2011-3-14
Specifying the full or partial path of a function is not possible, afaik. But you can create a function handle in addtion: CD to the wanted file once, create the function handle by: myWaterShed = @watershed, and move this afterwards directly or as first input of FEVAL.
更多回答(2 个)
Jokin Ezenarro
2021-8-6
I think the easiest way is to change the preferences of the pathways. In Home go to Set Path, choose the path of the function you want to use and is shadowed and take it to the top.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!