how to run function from the same folder?
31 次查看(过去 30 天)
显示 更早的评论
I have a script and I want to run a function which is in the same folder, but I don't want to add the whole folder to the path.
1 个评论
Geoff Hayes
2015-6-28
If you don't want to the folder to the path (why not?) then just change to this directory/folder and run the script from there. (I'm assuming that the script and function are in the same folder.)
回答(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!