DataSetStructureSea​rching

Automatically Reach Every Single File in A Three-Layer Data Set
112 Downloads
Updated 29 Mar 2015

View License

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

Cite As

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

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.3.0.0

Description revised.

1.2.0.0

M-function revised

1.1.0.0

Typo correction.

1.0.0.0