DataSetStructureSea​rching

Automatically Reach Every Single File in A Three-Layer Data Set
112 Downloads
Aktualisiert 29. Mär 2015

Lizenz anzeigen

When dealing with a lot of sample data files obtained from a certain number of tests, you probably need a tool to automatically figure out how many folders and files there are, and most importantly how to reach each single file of them. This MATLAB function shared by James will help you to do that.
1) Put the un-zipped folder in you computer
2) Run the Test_Script.m with you MATLAB and see how it works and displays in the command window

3) Next, replace the test DataSet contents with your self-define three-layer folders and readable files (.txt or .log or...) where the number of sub-folders and files is UNLIMITED and the name of each single file is no need to be well organized or sequential.

4) Modify the Test_Script

i) Define the name of each category folder: DataSetDefinition.MainFolderPath{k} = '%%', k=1~N

ii) Define your customized operation for each single file
%--------------------------------------------------------------------------------------------------------

% PERFORM YOUR DATA MINING OR PARSING OPERATIONS HERE

%--------------------------------------------------------------------------------------------------------

(5) Please help to feedback any suggestions about this function to make it more valuable

Zitieren als

James D.B. Wang (2024). DataSetStructureSearching (https://www.mathworks.com/matlabcentral/fileexchange/50321-datasetstructuresearching), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2013b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu File Operations finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.3.0.0

Description revised.

1.2.0.0

M-function revised

1.1.0.0

Typo correction.

1.0.0.0