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.)
how to run function from the same folder?
7 次查看(过去 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.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!