from
M-File Alignment
by Andre Strobel
Functions for cleaning m-code alignment
|
| fAllFiles(vPath)
|
function [vAllFiles] = fAllFiles(vPath)
%fAllFiles find all files in vPath
%
% [vAllFiles] = fAllFiles(vPath)
%
% Function for finding all files in vPath.
%
% Example: [vAllFiles] = fAllFiles('C:\')
%
% Author: Dipl.-Ing. Andr Manfred Strobel
% Copyright: 1999-2001 by DaimlerChrysler AG, FT1/AK
% Matlab: 6.0, R12 (Win)
% Date: 2001/03/05 11:00
% Version: 001.01 * Released * / beta / alpha
% Release: 01.00
vAllFiles = {}; % first there are no files
vDirectoryTOC = dir(vPath); % determine the table of contents of the given path/directory
for i=1:1:size(vDirectoryTOC, 1)
% for all entries in the given directory do
vNewFile = vDirectoryTOC(i).name; % get the name of the i-th file
if ~vDirectoryTOC(i).isdir
% the entry is a file
% the current entry is added to the list of all files
vAllFiles = [vAllFiles; {vNewFile}];
end % of if
end % of for i
% end fAllFiles
|
|
Contact us at files@mathworks.com