Rank: 100 based on 1734 downloads (last 30 days) and 13 files submitted
photo

Ben Petschel

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Ben View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 Sep 2009 jointable Join pairs of tables using arbitrary keys Author: Ben Petschel join, jointable, sql 102 0
14 Sep 2009 multisetdiff like setdiff, but any repeated elements of A are removed only once for each time they occur in B Author: Ben Petschel setdiff, multiset, multisetdiff 133 2
14 Sep 2009 lexcmp Fast C-style array/string comparison (by lexical ordering) Author: Ben Petschel comparison, compare, lexical, string comparison, string 132 0
31 Aug 2009 Published M-Files Pointers Toolbox basic functions to work with pointer variables and dynamic data types Author: Ben Petschel pointer object, dynamic data type, virtual memory, pointer 125 0
  • 4.0
4.0 | 1 rating
28 Aug 2009 stack manipulate stack objects as dynamic arrays Author: Ben Petschel dynamic array, use at own risk, stack 98 0
Comments and Ratings by Ben View all
Updated File Comments Rating
21 Sep 2009 All Permutations of integers with sum criteria All Pernutations of integers with sum criteria Author: Bruno Luong

Nice program. Users might also be interested in a looped solution using the function "nextwhile" in the NextVector toolbox <pre class="link">http://www.mathworks.com/matlabcentral/fileexchange/24757&lt;/pre&gt;. If the entire matrix of combinations is needed then Bruno's version is faster (because row concatenation is slow) otherwise the looped solution is faster.

16 Sep 2009 Blendenpik A fast solver of dense rectangular dense linear equations . (least squares or underdetermined). Author: Haim Avron

Nice work

14 Sep 2009 Blendenpik A fast solver of dense rectangular dense linear equations . (least squares or underdetermined). Author: Haim Avron

This is potentially a novel and useful algorithm but I couldn't get it to install because it seems to require a separate installation of FFTW C libraries, even though FFTW already comes with MATLAB and is used by the built-in version of FFT.

Also there is no mention of how the results compare in accuracy and speed against the built-in solves least-squares "\", so why go to the trouble of getting it to work?

11 Sep 2009 Blendenpik A fast solver of dense rectangular dense linear equations . (least squares or underdetermined). Author: Haim Avron

Can you post the results of benchmarking against "\" please?

03 Sep 2009 setdiff Set difference of two sets of positive integers (much faster than built-in setdiff) Author: Nick

Neat idea. How does the speed compare when you use sparse and/or logical arrays, e.g. to do setdiff([1,1e9],1) ?

Comments and Ratings on Ben's Files View all
Updated File Comment by Comments Rating
10 Sep 2009 multisetdiff like setdiff, but any repeated elements of A are removed only once for each time they occur in B Author: Ben Petschel Jos

Please ignore my previous thought as it is incorrect !!

10 Sep 2009 multisetdiff like setdiff, but any repeated elements of A are removed only once for each time they occur in B Author: Ben Petschel Jos

Nice utility! Just a thought, for numerical vectors, this might be more convenient:

C = union(A,B) ;
res = C(histc(A,C) > histc(B,C))

To deal with rows of matrices or cell array strings, one could convert A and B into indices using, e.g., the third output of unique.

01 Sep 2009 Pointers Toolbox basic functions to work with pointer variables and dynamic data types Author: Ben Petschel Philip

18 Aug 2009 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel Bizkevelci, Erdal

01 Aug 2009 Fractions Toolbox create and manipulate fractions (K+N/D) using exact arithmetic Author: Ben Petschel Fig, Matt

Great work!

Top Tags Applied by Ben
sql, arithmetic, chebyshevmarkovstieltjes, combination, combinations
Files Tagged by Ben View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
24 Sep 2009 jointable Join pairs of tables using arbitrary keys Author: Ben Petschel join, jointable, sql 102 0
14 Sep 2009 multisetdiff like setdiff, but any repeated elements of A are removed only once for each time they occur in B Author: Ben Petschel setdiff, multiset, multisetdiff 133 2
14 Sep 2009 lexcmp Fast C-style array/string comparison (by lexical ordering) Author: Ben Petschel comparison, compare, lexical, string comparison, string 132 0
31 Aug 2009 Published M-Files Pointers Toolbox basic functions to work with pointer variables and dynamic data types Author: Ben Petschel pointer object, dynamic data type, virtual memory, pointer 125 0
  • 4.0
4.0 | 1 rating
28 Aug 2009 stack manipulate stack objects as dynamic arrays Author: Ben Petschel dynamic array, use at own risk, stack 98 0
 

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