Friday 20 April 2012

Matlab Read all Files in a Directory

Accessing all files in user defined directory on Matlab using dir function. This function support to get all files in particular directory.In below we give some example.

Example code:


files = dir('example\*.m');
disp('example directonry contalin list of files');
for i = 1:length(files)
    display([files(i).name]);
end


In above program explain access all matlab files on example directory .This Program output as below.


Related Search : Get all files in User defined directory on MATLAB , Matlab dir List of files Example code, read all images in a directory matlab example,matlab read all files in specified directory.

Kindly Bookmark and Share it:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...