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에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!