Help with loading data from a folder in GUI
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone! I need to load some files from a folder, but I don't know how to save the directory. I'm using a GUI interface, and by using a push button 'Browse' I want to save the directory of my folder, e.g. 'C:\Users\Desktop\Folder1', which contains my data. Then, when pressing another push button to load my data, I want to be directed to this folder to take them, without browsing every time. How can I do? thanks
0 个评论
采纳的回答
Image Analyst
2015-1-8
Did you see the uigetdir() function? Save the directory string it returns in a global variable, then use it with fullfile() whenever you need to create a filename.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!