Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to programm a app which selects files from a file folder

2 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Fangjun Jiang
Fangjun Jiang il 14 Ago 2018
uigetfile()
  4 Commenti
Daniel Fonsêca
Daniel Fonsêca il 16 Ago 2018
I discovered that function. It's "cd". Thanks by help me ;)
https://www.mathworks.com/help/matlab/ref/cd.html#bu_45_g-2
Stephen23
Stephen23 il 16 Ago 2018
Modificato: Stephen23 il 16 Ago 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')

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by