Newbie question: adding m-files
2 次查看(过去 30 天)
显示 更早的评论
I am wanting to add a title to a figure with several subplots and found an m-file on the file exchange (at http://www.mathworks.com/matlabcentral/fileexchange/3218). How do I add this so that Matlab recognises this as a general function for all time regardless of what my current folder is? Thanks in advance...
0 个评论
回答(1 个)
Paulo Silva
2011-6-5
add the path to your m-files
doc addpath
1 个评论
Image Analyst
2011-6-6
It's best if you put that in your startup.m file, or follow it with savepath, or both, so that it will remember it for future sessions.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!