How to programm a app which selects files from a file folder
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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?
0 个评论
回答(1 个)
Fangjun Jiang
2018-8-14
0 个投票
uigetfile()
4 个评论
Sean de Wolski
2018-8-14
And
uigetdir
Also consider using appdesigner instead of GUIDE.
Daniel Fonsêca
2018-8-16
Daniel Fonsêca
2018-8-16
@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')
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!