Azzera filtri
Azzera filtri

Open folder in Matlab

6 visualizzazioni (ultimi 30 giorni)
Lily
Lily il 1 Ott 2012
Hi
I'm trying to open folder let's call it FolderA (Here is the directory: 'C:\Users\Usersname\Desktop\FolderA')in MATLAB that constains 9 Text Documents ('.txt') of size 30000-by-10. I want to be able to choose which files I want to observe that is one Text Doument, all Text Documents or i.e. Text Douments 1, 3 and 5.
I also want to use the selected files and use i.e. vector nr. 3 and 4 in all of them.
How does one do that?

Risposta accettata

Image Analyst
Image Analyst il 1 Ott 2012
We have just the file for you in the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/10867-uipickfiles-uigetfile-on-steroids, Doug Schwarz's uipickfiles:
Description
This is a GUI application that allows multiple files or directories to be selected and allows you to manage the list (remove files, reorder, etc.) before returning. It has basic filtering as well as regular expression filtering and navigation of the file system is easy. The output is configurable (cell, struct or char arrays). It is written entirely in M and so is platform independent.
  5 Commenti
Image Analyst
Image Analyst il 1 Ott 2012
Not exactly, but close
fullFileNames = uipickfiles()
for k = 1 : length(fullFileNames)
fprintf('Processing %s\n', fullFileNames{k});
storedStructure = load(fullFileNames{k});
end
Lily
Lily il 1 Ott 2012
This is so COOL! Thx :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Dialog Boxes in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by