How to programm a app which selects files from a file folder
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I'm new using the GUIDE, and I'm building a programm I want to read files from a file folder. To the app read those files, I want to put the file folder adress. Could you help me?
Answers (1)
Fangjun Jiang
on 14 Aug 2018
0 votes
uigetfile()
4 Comments
Sean de Wolski
on 14 Aug 2018
And
uigetdir
Also consider using appdesigner instead of GUIDE.
Daniel Fonsêca
on 16 Aug 2018
Daniel Fonsêca
on 16 Aug 2018
@Daniel Fonsêca: don't use cd: it slows down your code and makes debugging harder. Just use absolute/relative filenames, which are much more efficient. Just use fullfile like this:
D = 'directory where the files are';
F = fullfile(D,'name of the file.txt')
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!