Yes, You need to save the file in your matlab directory. So, save the file in a folder somewhere such as my documents\matlab\file exchange folder. Then open matlab, go to file > set path > click on add folder, select the location where you have just saved the file, click on save, and then close. Then, close and re-open matlab, the function should be ready to use. Let me know if you have any difficulties.
Using scripts from File Exchange
5 次查看(过去 30 天)
显示 更早的评论
Forgive my word usage ignorance, but I'm not quite sure how to phrase this question.
Is there some way to add scripts that I've downloaded from the File Exchange to the bin, or functionally add a shortcut, so that I can use them from the Matlab command line regardless of which directory I'm actually in?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!