Rank: 59 based on 917 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.


 

Watch this Author's files

 

Files Posted by Jan Simon 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 7 0
16 Jun 2014 Screenshot XSum Fast Sum with error compensation Author: Jan Simon sum, error, compensated, accuracy, kahan, knuth 13 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 6 0
17 Sep 2013 Screenshot RunLength RunLength coding as fast MEX and M-code Author: Jan Simon runlength, coding, code, rle, communications 56 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 Simon View all
Updated File Comments Rating
07 Dec 2014 Angle Conversion Converts degrees to radians and radians to degrees. Author: Aman

If the input array is large, a tiny modification improves the efficiency:

degrees = radians * (180 / pi);

Without the parentheses Matlab processes the line from left to right :

degrees = (radians * 180) / pi;

For scalars this is no difference except for the rounding errors. But for larger arrays the 2nd version has twice as much operations.

28 Nov 2014 times2(x) Result for Cody Challenge "Times 2" Author: Kevin

This is neither a optimal solution nor is the FileExchange the right location to post Cody answers.

21 Nov 2014 FAST, PROGRAMMATIC string searching in directories of MATLAB code files VERY FAST Command-Line searching for text contained in MATLAB code files. Author: Brett Shoelson

"userpath" is built-in Matlab function. Why is it included in this submission?

01 Nov 2014 WindowAPI Set figure size, top-most, transparency and pixel mask, multi-monitor etc by Windows API Author: Jan Simon

@Katharina: What about:

nMonitor = size(get(0, 'MonitorPositions'), 1)

26 Oct 2014 Producing negative image in Matlab Producing negative image of any image Author: Nazmus Sakiba

Again: This is a script, but only a function would be useful for others. A loop without a pre-allocation is a really bad programming style, it is hard to implement this worse in Matlab.

Think of vectorization:

I1 = 255 - I;

As you can see, the procedure is trivial. So I do not see a reason to publish this in teh FileExchange.

Comments and Ratings on Jan Simon's Files View all
Updated File Comment by Comments Rating
25 Nov 2014 CStrAinBP Overlapping elements of 2 cell strings. 10-20 times faster than INTERSECT/ISMEMBER/SETDIFF. Author: Jan Simon Hoi Wong

25 Nov 2014 CStrAinBP Overlapping elements of 2 cell strings. 10-20 times faster than INTERSECT/ISMEMBER/SETDIFF. Author: Jan Simon Hoi Wong

Great tool. Can you suggest how to implement setops (intersect/setdiff/union/setxor) using CStrAinBP that has the same behavior as the native setops that does unique() without any major hit in performance?

Thanks.

17 Nov 2014 WindowAPI Set figure size, top-most, transparency and pixel mask, multi-monitor etc by Windows API Author: Jan Simon Abdunnoer

Thanks for the great work
changed
mex('-O', 'WindowAPI');
to
mex('-O', 'WindowAPI.c');

cause it did`nt find file

11 Nov 2014 DataHash MD5 or SHA hash for array, struct, cell or file Author: Jan Simon Noam Greenboim

Well written, good running time

01 Nov 2014 WindowAPI Set figure size, top-most, transparency and pixel mask, multi-monitor etc by Windows API Author: Jan Simon Jan Simon

@Katharina: What about:

nMonitor = size(get(0, 'MonitorPositions'), 1)

Contact us