No BSD License  

5.0

5.0 | 6 ratings Rate this file 45 Downloads (last 30 days) File Size: 1.23 KB File ID: #1492

SUBDIR *new*

by

 

15 Mar 2002 (Updated )

Recursively search for files and/or directorys under given folder without using of global variables.

| Watch this File

File Information
Description

SUBDIR
     returns all subfolder under current path.
  P = SUBDIR('directory_name')
      stores all subfolders under given directory into a variable 'P'

  [P F] = SUBDIR('directory_name')
      stores all subfolders under given directory into a
      variable 'P' and all filenames into a variable 'F'.
      use sort([F{:}]) to get sorted list of all filenames.

Acknowledgements

This file inspired Rpcode and Folders Sub Folders.

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
06 Jan 2014 padauklan

Thank you very much for the submission. It really helps me.

Padauk

16 Aug 2013 Swati Tiwari

Thank you so much!! This really helped me :)

05 Mar 2013 Nikolay S.

Excellent, works nicely

16 Jul 2009 Yanfei

great work!!!!

26 Mar 2008 Durga Shrestha

nice work, save my time.

28 Feb 2007 martin demel

The code is optimized and you can also get the name of the files. This is excellent working.

Contact us