Help with loading data from a folder in GUI

2 ビュー (過去 30 日間)
aurc89
aurc89 2015 年 1 月 8 日
コメント済み: aurc89 2015 年 1 月 9 日
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

採用された回答

Image Analyst
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.
  1 件のコメント
aurc89
aurc89 2015 年 1 月 9 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by