Get files of any extention to a folder

Get files from folder containing many subfolders & files in each subfolder
Updated 17 Jul 2009

View License

This function helps you to extract files from subfolders.
I have main folder(feature) containing subfolders(subfeature)each subfeature has models & xl files.
While testing we need to take all the models & libraries to a single folder.
This code can be used & it is generalized to extract the files with the extension you specify.......
May be useful to you.......
I think I need to practice in giving comments ...
Updated with comments......
Your suggestions are welcome.......
mail me at

Cite As

Shanmugam Kannappan (2024). Get files of any extention to a folder (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Adding custom doc in Help Center and MATLAB Answers
Tags Add Tags

Inspired: Folder_name_writing

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Comments are given briefly....