Rank: 1937 based on 58 downloads (last 30 days) and 4 files submitted
photo

Bob Hamans

E-mail
Lat/Long
51.823658, 5.861848

Personal Profile:
Professional Interests:
Magnetic resonance imaging and spectroscopy

 

Watch this Author's files

 

Files Posted by Bob View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Jul 2011 LISTZIPCONTENTS Lists the contents of a zip file. Author: Bob Hamans zip, list, contents, java 13 1
  • 5.0
5.0 | 1 rating
29 Jan 2009 dicomrename Renames DICOM-files based on the value of fields in the file header. Compatible with Siemens MR IMA Author: Bob Hamans dicom, siemens, ima, rename, dcm 13 0
20 Sep 2007 wildcardsearch Searches the file system for files or folders matching a wildcard pattern Author: Bob Hamans path, directories, files, search, files folders, recursive 11 1
  • 5.0
5.0 | 1 rating
20 Sep 2007 regexpdir Returns a directory listing based on a regular expression Author: Bob Hamans path, directories, files, dir, regular expression, recursive 21 2
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Bob View all
Updated File Comments Rating
06 Jul 2011 Listfiles retrieves files in specified directory Author: Alexandra

See for similar functions: http://www.mathworks.com/matlabcentral/fileexchange/16217-wildcardsearch or http://www.mathworks.com/matlabcentral/fileexchange/16216-regexpdir

02 Jun 2011 Sorting a Cell Array This function will sort a cell array even if it is mixed. Author: Jeff Jackson

Correct that! The last line should read:
ix = ixin(ix);

01 Jun 2011 Sorting a Cell Array This function will sort a cell array even if it is mixed. Author: Jeff Jackson

Solved for now. Maybe I will update this function at a future time point to implement the above. For now:

[data, ixa] = sortcell(data, 11);
[data, ixb] = sortcell(data, 12);
[data, ixc] = sortcell(data, 1);
[data, ixd] = sortcell(data, 5);
ix=ixa(ixb(ixc(ixd)));

Desired would be:
[data, ix] = sortcell(data, [11 12 1 5]);

01 Jun 2011 Sorting a Cell Array This function will sort a cell array even if it is mixed. Author: Jeff Jackson

Would there be an easy way of getting the overall permutation vector for a multidimensional sort? For one dimension it is easy (just return ix defined at line 108) but when using multiple dimension only the last value of ix is returned. I was thinking to implement something like ix(ix) but that of course does not work. Suggestions welcome!

Comments and Ratings on Bob's Files View all
Updated File Comment by Comments Rating
14 May 2014 regexpdir Returns a directory listing based on a regular expression Author: Bob Hamans Christopher

Works great out of the box. The optional recursive flag is particularly helpful. Thank you for your contribution.

13 May 2014 LISTZIPCONTENTS Lists the contents of a zip file. Author: Bob Hamans Komarov, Oleg

Tested on R2014a and lists contents without unzipping.

Couldn't be simpler.

14 Dec 2013 wildcardsearch Searches the file system for files or folders matching a wildcard pattern Author: Bob Hamans Matthew

07 Jun 2013 regexpdir Returns a directory listing based on a regular expression Author: Bob Hamans Moore, Richard

Great function! I often write scripts that sort through files and strings with wildcards are often not expressive enough to filter compactly. Your recursive option is handy, too. It would be nice if the output were a struct array like dir returns instead of a cell array, though.

17 Dec 2007 regexpdir Returns a directory listing based on a regular expression Author: Bob Hamans Biessmann, Felix

Contact us