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?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2018년 8월 14일

0 개 추천

uigetfile()

댓글 수: 4

And
uigetdir
Also consider using appdesigner instead of GUIDE.
Thanks by help me, but I would like a function which I select the adress from past and the Current Folder from Matlab change
I discovered that function. It's "cd". Thanks by help me ;)
https://www.mathworks.com/help/matlab/ref/cd.html#bu_45_g-2
@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')

이 질문은 마감되었습니다.

질문:

2018년 8월 14일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by