Rank: 107 based on 469 downloads (last 30 days) and 39 files submitted
photo

Jan Simon

E-mail
Lat/Long
49.41804, 8.671068

Personal Profile:

Computers assist human.
I do not answer to emails related to questions of the Answers forum.

Professional Interests:
Motion analysis, physics, orthopedics

 

Watch this Author's files

 

Files Posted by Jan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Nov 2011 Screenshot WindowAPI Set figure size, top-most, transparency and pixel mask, multi-monitor etc by Windows API Author: Jan Simon figure, alpha, blending, stencil, maximize, minimize 33 8
  • 4.75
4.8 | 4 ratings
03 Nov 2011 GetFullPath Full path name for partial or relative path Author: Jan Simon full, name, path, file, qualified, parent directory 26 11
  • 5.0
5.0 | 7 ratings
01 Nov 2011 Screenshot CmdWinTool Programmatic control of the command window Author: Jan Simon command window, maximize, minimize, statusbar, menubar, multimonitor 9 1
  • 5.0
5.0 | 1 rating
01 Nov 2011 Screenshot anyExceed Fast test for out of range elements, C-mex Author: Jan Simon statistics, data exploration, cmex, any, exceed, limit 2 1
01 Nov 2011 Screenshot anyEq Fast check if 2 arrays have a common element Author: Jan Simon any, equal, isequal, compare, common element, cmex 5 2
Comments and Ratings by Jan View all
Updated File Comments Rating
19 May 2012 ISEQUALFP: Check two values for equality within floating point precision Accepts two values, returns a logical indicating if they are equal within floating point precision Author: Andrew Davis

Fine. Now it works as expected. I'd prefer to get FALSE if the sizes do not match, equivalently to ISEQUAL. But this is a matter of taste.
What do you expect if one input is a SINGLE and the other a DOUBLE? E.g.:
isequalfp(single(1), 1+eps('double'))
isequalfp(single(1)+eps('single'), 1)
Note that "single(1) - (1+eps('double'))" replies: single(-2.2204e-016)
However, the function works as I expect it, it is well documented, useful and usable. Although this is a one-line actually, floating point arithmetics are never trivial. See also: http://en.wikipedia.org/wiki/Floating_point

17 May 2012 ISEQUALFP: Check two values for equality within floating point precision Accepts two values, returns a logical indicating if they are equal within floating point precision Author: Andrew Davis

The function fails for: isequalfp([1e17, 1], [1e17, -1]) => true
I think you want:
yn = abs(a - b) <= eps(max(abs(a), abs(b)));

17 May 2012 pass_protect Creates a password protected pcode version of an M-file. Author: Matt Fig

While I still appreciate the quality of the code, I do think that the achieved protection level is not high enough for a function called "pass_protect".
It will need less than a minute to circumvent the P-coded password check.

17 May 2012 Integer partition generator Generates a table of all integer partitions up to a value N. Author: David Holdaway

Thanks, Bruno. I had no doubt that David used the right term for the problem solved by his program. The term 'partition' appears in other fields also, compare: http://en.wikipedia.org/wiki/Partition ).
For this reason, and because it is a good idea in general when a function is posted in the FEX, I wanted to encourage him to improve the help text. The updated screen shot and description text is more helpful. Thanks, David.
A related submission: http://www.mathworks.com/matlabcentral/fileexchange/24185-partitions

16 May 2012 findstringline Function finds the lines that a given string is present in a text file. Author: Mark

Beside the excelletn documentation in the code, there is no help text on top of the function. What a pitty. A support of "help findstringline" would make this small function useful and usable.

Comments and Ratings on Jan's Files View all
Updated File Comment by Comments Rating
09 May 2012 DateStr2Num Convert date string to date number - CMex: much faster than DATENUM Author: Jan Simon Sullivan, Jonathan

Very nice submission. It is enormously faster than datenum. Another great file from Jan.

02 May 2012 VChooseK Choose K elements from a vector - MEX: 100 times faster than NCHOOSEK Author: Jan Simon Kusano, Kristofer

This works great, much faster than the built in Matlab function, as advertised. Thanks for sharing your work!

26 Apr 2012 DataHash MD5 or SHA hash for array, struct, cell or file Author: Jan Simon Simon, Jan

@Oyvind: I have posted an MD5-calculator also as MEX-function. But it does not allow the direct accumulation of the hash for nested cells or structs. But you could do a XORing of the partial hashes. But this will not be trivial.

24 Apr 2012 DataHash MD5 or SHA hash for array, struct, cell or file Author: Jan Simon Oyvind

Hi,
Is it possible to run Datahash without Java (I am stuck with the limitation of excel 2003 using a compiled version of datahash tha requires JVM).
Oyvind

19 Apr 2012 GetFullPath Full path name for partial or relative path Author: Jan Simon Simon, Jan

Thanks Igor! There is another problem if the the full path has 254 characters. While Windows accept this, Matlab's DIR command doesn't. I'm going to post an improved version soon.

Top Tags Applied by Jan
cmex, mex, string, statistics, array
Files Tagged by Jan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Nov 2011 Screenshot WindowAPI Set figure size, top-most, transparency and pixel mask, multi-monitor etc by Windows API Author: Jan Simon figure, alpha, blending, stencil, maximize, minimize 33 8
  • 4.75
4.8 | 4 ratings
03 Nov 2011 GetFullPath Full path name for partial or relative path Author: Jan Simon full, name, path, file, qualified, parent directory 26 11
  • 5.0
5.0 | 7 ratings
01 Nov 2011 Screenshot CmdWinTool Programmatic control of the command window Author: Jan Simon command window, maximize, minimize, statusbar, menubar, multimonitor 9 1
  • 5.0
5.0 | 1 rating
01 Nov 2011 Screenshot anyExceed Fast test for out of range elements, C-mex Author: Jan Simon statistics, data exploration, cmex, any, exceed, limit 2 1
01 Nov 2011 Screenshot anyEq Fast check if 2 arrays have a common element Author: Jan Simon any, equal, isequal, compare, common element, cmex 5 2

Contact us at files@mathworks.com