Rank: 1971 based on 74 downloads (last 30 days) and 3 files submitted
photo

Kevin Crosby

E-mail
Company/University
Jacobs Technology

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Kevin View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Aug 2010 Directory to Cell Converts directory listing into a cell array. Author: Kevin Crosby dir, directories, filenames, files, folder, path 20 7
  • 4.33333
4.3 | 4 ratings
10 Aug 2010 Standalone Pulldown Menus Standalone pulldown menus with title. Author: Kevin Crosby pulldown, uicontrol, callback, popup 11 1
  • 5.0
5.0 | 1 rating
02 Aug 2010 Column Converter for Excel Convert Excel column letters to numbers or vice versa, for processing data to/from XLSREAD/XLSWRITE. Author: Kevin Crosby data export, data import, excel 43 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Kevin View all
Updated File Comments Rating
11 Aug 2010 Directory to Cell Converts directory listing into a cell array. Author: Kevin Crosby

Zach,

I have tried updating my program with your suggestion (See below).

However, the timing for my test cases appears to be almost the same, with my original code being slightly faster.

if ~exist('arg', 'var') || isempty(arg)
d = struct2cell(dir)';
else % if exist('arg', 'var') && ~isempty(arg)
d = struct2cell(dir(arg))';
end % if ~exist('arg', 'var') || isempty(arg)

if isempty(d)
[names, dates] = deal({}); % make size equal 0
[datenums, bytes, isdirs] = deal([]);
else % if ~isempty(d)
%[names dates bytes isdirs datenums] = ... % a little slower
% deal(d(:,1), d(:,2), [d{:,3}]', [d{:,4}]', [d{:,5}]');
names = d(:,1);
dates = d(:,2);
bytes = [d{:,3}]';
isdirs = [d{:,4}]';
datenums = [d{:,5}]';
end % if isempty(d)

10 Aug 2010 Directory to Cell Converts directory listing into a cell array. Author: Kevin Crosby

Jan,
Thanks for your comments. I'll upload an update based on your suggestion shortly.

10 Aug 2010 Directory to Cell Converts directory listing into a cell array. Author: Kevin Crosby

Works with MATLAB 7.10 (R2010a)

10 Aug 2010 Standalone Pulldown Menus Standalone pulldown menus with title. Author: Kevin Crosby

Works with MATLAB 7.10 (R2010a)

30 Jun 2010 Munkres Assignment Algorithm An efficient implementation of the Munkres algorithm for the assignment problem. Author: Yi Cao

Yi,

There was a problem with my data, that did not occur in any of my other cases.

Thanks again!

Kevin

Comments and Ratings on Kevin's Files View all
Updated File Comment by Comments Rating
04 Jun 2014 Directory to Cell Converts directory listing into a cell array. Author: Kevin Crosby Nathan

Nice! Thank you!

18 Mar 2014 Directory to Cell Converts directory listing into a cell array. Author: Kevin Crosby Norberto

Very useful! Thanks

18 Mar 2014 Directory to Cell Converts directory listing into a cell array. Author: Kevin Crosby Norberto

22 Apr 2013 Column Converter for Excel Convert Excel column letters to numbers or vice versa, for processing data to/from XLSREAD/XLSWRITE. Author: Kevin Crosby Crozier, Richard

Nice, thanks.

14 Aug 2011 Standalone Pulldown Menus Standalone pulldown menus with title. Author: Kevin Crosby Smart, Mr

Contact us