Rank: 110 based on 1664 downloads (last 30 days) and 12 files submitted
photo

Jan Simon

E-mail
Lat/Long
49.41804, 8.671068

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Jan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Nov 2009 FileTime Get and set the times for creation, access and modification of a file or folder (Windows only) Author: Jan Simon access, date, creation, mex, ntfs, dir 221 3
  • 4.5
4.5 | 2 ratings
16 Oct 2009 Screenshot DateConvert Simple but fast date conversion: 1.3% of DATESTR time, 20% of DATEVEC/ DATENUM time Author: Jan Simon datestr, datevec, conversion, data import, date vector, serial date number 120 0
13 Oct 2009 Screenshot uiFlash Direct attention to UI object by short flashing Author: Jan Simon highlight, blink, attention, flash, gui, uicontrol 106 0
01 Oct 2009 Screenshot ScaleTime Fast linear interpolation of equally spaced data (C-MEX and M) Author: Jan Simon matrix, interpolation, lookup, time normalization, table, scaling 135 0
16 Sep 2009 Screenshot Patch FILTFILT Vectorize FILTFILT (Signal Processing Toolbox) to accelerate processing a matrix Author: Jan Simon image processing, vectorize, filtfilt, filter, matrix, signal processing 106 0
Comments and Ratings by Jan View all
Updated File Comments Rating
21 Nov 2009 Process named Arguments Easily add optional, named arguments to your functions, like this: f('var_name', value). Author: Alan Robinson

If the EXIST test would be omitted, procArgs could even *create* variables in the caller. But this would be dangerous and would confuse the JIT compiler: "assignin('caller', 'RANK', 1)" collides with the Matlab toolbox function 'rank' (at least in Matlab 6.5 and 7.7). Therefore I appreciate that you've included (and updated) the EXIST test.
You are right: debugging is not impossible. ASSIGNIN and EVALIN can obfuscate a program and predicting the effects can be really hard. But to be honest: one can write obfuscated source even without ASSIGNIN! procArgs with some good comments can be much better than a hard coding without comments.
Rating: H1 line, help, example, version number, name of author: exsiting. Function works, is useful and usable. I personally prefer hardcoded access of variables and this might be a question of taste.

20 Nov 2009 Process named Arguments Easily add optional, named arguments to your functions, like this: f('var_name', value). Author: Alan Robinson

In my opinion, this will handicap the debugging drastically, because it hides the source of values.

Checking the existence of a variable with "exist('Name')" is slow and fails if a matching file, folder, class name or built-in function exists. Safer and faster: "exist('Name', 'var')". At least it is a good idea to include this test: Allow JIT compilation, avoid collisions between variables and built-in functions (can appear even for different upper/lower-case).

18 Nov 2009 new_dir.m This is an enhancement to MATLAB's dir function, for dealing with sequentially numbered files. Author: Stephan Koehler

The function starts with overwriting VARARGIN - please remove this!
The help section now mentions, that the -find option works on Unix only. But a check in the function (if ~isunix, error('-find works on Unix only'); end) would be useful.
Please update the file information on the FEX: This function does still not run under Matlab 5.3.
The help section is still hard to read (for me) due to the formatting. A H1-line would be helpful (see LOOKFOR command).
Some simplifications are possible, e.g.: "numel({d.name})" equals "numel(d)",
"to_do = strncmp( varargin, '-', 1 );
neg_queery = ~to_do&strncmp(varargin, '~', 1 );" is easier as: "neg_queery = strncmp(varargin, '~', 1);".
Comments in the source are recommended generally.
I really like the idea of expanding DIR with a filter for numerical indices.

11 Nov 2009 FileTime Get and set the times for creation, access and modification of a file or folder (Windows only) Author: Jan Simon

@Bass: I've submitted a new version with an improved UTC<->local time conversion. Now with the default conversion, GetFileTime replies the same time as the DIR command of Matlab 7. UTC times and the Windows-like times depending on the current daylight saving time are possible also.
Thanks for finding this problem!

08 Nov 2009 new_dir.m This is an enhancement to MATLAB's dir function, for dealing with sequentially numbered files. Author: Stephan Koehler

In contrary to the file informations above, new_dir does not run on Matlab 5.3.1 (and 6.5 also), because the DIR command does not reply the field 'datenum' for this versions.
No meaningful H1 line, the help text is long and exhaustive, but hard to read (please insert a space after the %, limit the line width, use some empty lines to divide sections). A lot of examples are given, but some crash: There is no "-regexp" flag for the FIND command of Windows XP --- perhaps your function is written for Unix only?! If so, please mention this.
No comments in the source. The initial section for debugging is useless for FEX users.
If updates of this files are submitted or searched, it is helpful to mention the full name of the author and the exact date of submission.
Working partially on WindowsXP, but not under the claimed Matlab version.

Comments and Ratings on Jan's Files View all
Updated File Comment by Comments Rating
11 Nov 2009 FileTime Get and set the times for creation, access and modification of a file or folder (Windows only) Author: Jan Simon Simon, Jan

@Bass: I've submitted a new version with an improved UTC<->local time conversion. Now with the default conversion, GetFileTime replies the same time as the DIR command of Matlab 7. UTC times and the Windows-like times depending on the current daylight saving time are possible also.
Thanks for finding this problem!

05 Nov 2009 FileTime Get and set the times for creation, access and modification of a file or folder (Windows only) Author: Jan Simon Bass

Useful function.
Beaware, however that the times return by this function do not necessarily match those return by the MATLAB dir function. This seems to because Windows add an hour when reporting the time during daylight savings time (even if the file wasn't created during daylight savings time. See http://www.mathworks.com/support/solutions/en/data/1-1YLPX9/index.html?product=ML&solution=1-1YLPX9.)
MATLAB however does not do this.

I this function appears to return the Windows time. So I have run into problems when using the two functions together.

08 Oct 2009 C3D_VaxD2PC Convert C3D file from DEC (VAXD) to PC (IEEE-LE) format so that they can be read in Matlab >= 2008b. Author: Jan Simon Wang, Jun

great. how to convert PC to DEC (VAXD) format? or how to check if a c3d fils is in PC or DEC format, then I can choose to open it accordingly. thanks!

01 Oct 2009 AutoWarnDlg Self-terminating modal warning dialog with flashing icon Author: Jan Simon Queffurust, Aurelien

Works perfectly in the current release R2009b

24 Aug 2009 FileTime Get and set the times for creation, access and modification of a file or folder (Windows only) Author: Jan Simon Queffurust, Aurelien

Very useful to get the creation time of files since the DIR output doesn't return this information

Top Tags Applied by Jan
matrix, mex, signal processing, string, cell string
Files Tagged by Jan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Nov 2009 FileTime Get and set the times for creation, access and modification of a file or folder (Windows only) Author: Jan Simon access, date, creation, mex, ntfs, dir 221 3
  • 4.5
4.5 | 2 ratings
16 Oct 2009 Screenshot DateConvert Simple but fast date conversion: 1.3% of DATESTR time, 20% of DATEVEC/ DATENUM time Author: Jan Simon datestr, datevec, conversion, data import, date vector, serial date number 120 0
13 Oct 2009 Screenshot uiFlash Direct attention to UI object by short flashing Author: Jan Simon highlight, blink, attention, flash, gui, uicontrol 106 0
01 Oct 2009 Screenshot ScaleTime Fast linear interpolation of equally spaced data (C-MEX and M) Author: Jan Simon matrix, interpolation, lookup, time normalization, table, scaling 135 0
16 Sep 2009 Screenshot Patch FILTFILT Vectorize FILTFILT (Signal Processing Toolbox) to accelerate processing a matrix Author: Jan Simon image processing, vectorize, filtfilt, filter, matrix, signal processing 106 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