Rank: 44 based on 964 downloads (last 30 days) and 45 files submitted
photo

Jan Simon

E-mail
Company/University
University Heidelberg
Lat/Long
49.41804, 8.671068

Personal Profile:

Computers assist human, not the other way around.

Questions about FileExchange submissions are welcome. Get my address from the code.

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
07 Jul 2014 Screenshot MessWords Shuffle characters of words Author: Jan Simon shuffle, mix, characters, words, fun 11 0
16 Jun 2014 Screenshot XSum Fast Sum with error compensation Author: Jan Simon sum, error, compensated, accuracy, kahan, knuth 16 14
  • 5.0
5.0 | 3 ratings
19 May 2014 GetSelection Get selected strings from listbox or popupmenu Author: Jan Simon uicontrol, listbox, popupmenu, strings, selected 5 0
17 Sep 2013 Screenshot RunLength RunLength coding as fast MEX and M-code Author: Jan Simon runlength, coding, code, rle, communications 44 4
  • 5.0
5.0 | 1 rating
11 Sep 2013 Screenshot anyEq Fast check if 2 arrays have a common element Author: Jan Simon any, equal, isequal, compare, common element, cmex 10 5
  • 5.0
5.0 | 1 rating
Comments and Ratings by Jan View all
Updated File Comments Rating
27 Sep 2014 3D structuring element (sphere) strel3d creates a sphere as a 3D structuring element, which is important for 3D datasets Author: Luke Xie

A simplification:

sw = (sesize-1)/2;
ses2 = ceil(sesize/2);
[y,x,z] = meshgrid(-sw:sw, -sw:sw, -sw:sw);
m = sqrt(x.^2 + y.^2 + z.^2);
b = (m <= m(ses2, ses2, sesize));
se = strel('arbitrary', b);

18 Aug 2014 BlockMean Mean of rectangular submatrices, fast C-Mex (no running mean) Author: Jan Simon

@sykam varma: As far as I understand: Yes. Simply try it.

05 Aug 2014 tprintf -- Print to Second Terminal Window Print lines of text in secondary windows resembling command window. Author: Petorr

If you open the figure with 'IntegerHandle' set to 'off', the figure get a unique handle which is guaranteed not to collide with a user defined figure.

An axes appears "magically" in a new figure only, when a plotting command is called. But creating an invisible axes object is not useful to prevent this. So this is a kind of voodoo. ;-)

02 Aug 2014 tprintf -- Print to Second Terminal Window Print lines of text in secondary windows resembling command window. Author: Petorr

I do not understand the sense of
fH = min( setdiff(1000:10000,fHs) );
when fH is overwritte later.
What about this simple code to obtain the handle of the figure:
fH = findobj(allchild(0), 'flat', 'Name', figureName)

The axes aH is not used anywhere. So why do you create it?

You have the handle of the UICONTROL sH allready. Why do you obtain it by a loop and comparing the type of the figure's children? It would be cleaner to call either FINDOBJ instead of a loop, or to store the handle in teh figure's ApplicationData (see GUIHANDLE).

02 Aug 2014 DateStr2Num Convert date string to date number - C-Mex: much faster than DATENUM Author: Jan Simon

@joh: What exactly is an "array of dates"? Cell strings are handles internally already.

Comments and Ratings on Jan's Files View all
Updated File Comment by Comments Rating
13 Sep 2014 DataHash MD5 or SHA hash for array, struct, cell or file Author: Jan Simon Giorgio

Well written!

21 Aug 2014 fRMField Remove a field from a struct efficiently - fast C-Mex Author: Jan Simon Adam

18 Aug 2014 BlockMean Mean of rectangular submatrices, fast C-Mex (no running mean) Author: Jan Simon Simon, Jan

@sykam varma: As far as I understand: Yes. Simply try it.

15 Aug 2014 DateStr2Num Convert date string to date number - C-Mex: much faster than DATENUM Author: Jan Simon Felipe

12 Aug 2014 BlockMean Mean of rectangular submatrices, fast C-Mex (no running mean) Author: Jan Simon varma, sykam

I want to do block averaging of matrix which is double ofrmat. Can I use this file?

Contact us