Rank: 176 based on 1188 downloads (last 30 days) and 10 files submitted
photo

Gerald Dalley

E-mail
Company/University
MIT CSAIL

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Gerald View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Jun 2007 rsplit Splits a delimited string into a cell array using a regular expression. Author: Gerald Dalley implode, break, split, array, cell, strings 122 6
  • 3.5
3.5 | 2 ratings
07 Nov 2006 assert.m Assert function that expands like the C macro assert Author: Gerald Dalley regression tests test... 131 4
  • 2.66667
2.7 | 3 ratings
21 Feb 2006 globalLoad.m Loads a .mat file's variables into the global namespace Author: Gerald Dalley global load persisten... 132 0
21 Feb 2006 collapse.m Removes degenerate portions of a cell array tree. Author: Gerald Dalley branch, cell, structures, tree, cell arrays, collapse 120 1
  • 4.0
4.0 | 1 rating
21 Feb 2006 mtx2charcell Converts a matrix of numbers into a cell array of strings. Author: Gerald Dalley string cell number, strings 104 4
  • 4.0
4.0 | 1 rating
Comments and Ratings on Gerald's Files View all
Updated File Comment by Comments Rating
11 Sep 2009 printf, stdout, stderr Convenience functions for text output (printf, stdout, and stderr). Author: Gerald Dalley diener, julien

Sorry but it is not usefull as this is exactly what fprintf is already doing.

However, it could be nice to be able to catch everything that is written in the command window without using evalc. If you have an idea, please submit it. (for example with a nice overload of fprintf)

11 Sep 2009 printf, stdout, stderr Convenience functions for text output (printf, stdout, and stderr). Author: Gerald Dalley diener, julien

29 May 2009 rsplit Splits a delimited string into a cell array using a regular expression. Author: Gerald Dalley Jos

@Ged Ridgway

As suggested:

R = '\s+(and|&)\s+'
S= 'one and two & three'
Answer = strread(regexprep(S,R,' '),'%s').'

does the job ...

29 May 2009 rsplit Splits a delimited string into a cell array using a regular expression. Author: Gerald Dalley Ridgway, Ged

Excellent, gravely underrated submission. Perl programmers will know how useful its split function is, and this seems to be a consistent MATLAB implementation.

Those that think strread or str2cell or similar is equivalent should try reproducing this:
  rsplit('\s+(and|&)\s+', 'one and two & three')
which returns {'one', 'two', 'three'}.

28 Sep 2008 split Splits a delimited string into a cell array. Author: Gerald Dalley chen, xiaohui

Top Tags Applied by Gerald
strings, string manipulation, utilities, cell, cell arrays
Files Tagged by Gerald View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Jun 2007 rsplit Splits a delimited string into a cell array using a regular expression. Author: Gerald Dalley implode, break, split, array, cell, strings 122 6
  • 3.5
3.5 | 2 ratings
07 Nov 2006 assert.m Assert function that expands like the C macro assert Author: Gerald Dalley regression tests test... 131 4
  • 2.66667
2.7 | 3 ratings
21 Feb 2006 globalLoad.m Loads a .mat file's variables into the global namespace Author: Gerald Dalley global load persisten... 132 0
21 Feb 2006 collapse.m Removes degenerate portions of a cell array tree. Author: Gerald Dalley branch, cell, structures, tree, cell arrays, collapse 120 1
  • 4.0
4.0 | 1 rating
21 Feb 2006 mtx2charcell Converts a matrix of numbers into a cell array of strings. Author: Gerald Dalley string cell number, strings 104 4
  • 4.0
4.0 | 1 rating
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com