Created
August 12, 2015 18:33
-
-
Save tsalo/860205312ad6bf7ed2c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Dir results to cell array of file names | |
AllTextFiles = dir('/home/tsalo/*.txt'); | |
cellArray = struct2cell(AllTextFiles); | |
cellArray = cellArray(1, :); | |
[allFilepaths, allFilenames, allSuffixes] = cellfun(@(X) fileparts(X), cellArray, 'UniformOutput', false); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment