Rank: 4247 based on 21 downloads (last 30 days) and 2 files submitted
photo

Romesh

E-mail
Company/University
University of Sydney

Personal Profile:

 

Watch this Author's files

 

Files Posted by Romesh View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
20 Feb 2013 Keyboard replacement with stack trace Display a stack trace showing where keyboard was used Author: Romesh keyboard, debugging, stack trace 7 2
  • 4.0
4.0 | 1 rating
20 Feb 2013 Screenshot Manual cell counter A GUI to make it easy to manually count cells Author: Romesh cell counting, image processing 14 0
Comments and Ratings by Romesh View all
Updated File Comments Rating
09 Sep 2013 edfRead A simple file reader for European Data Formatted (EDF-) files. Author: Brett Shoelson

20 Jul 2013 Outlier removal v2 Rosner's many outlier test, vectorized. Author: Paul

The vectorizing ideas are nice, but I think there are two problems with the method

1. When calculating R the actual data should be used (i.e. mean and std of the data) but after you do

[ ys, is ] = sort( abs( y - ybar ));

you construct yy from ys and calculate R using nanmean and nanstd from yy, which is being applied to the magnitude of the difference between the original data and the mean rather than the data itself. You probably need something 'ys = y(is)' before constructing yy

2. GESD rejects at outliers all of the points up to the last R_i > lambda_i so if you have Ri > lambda_i being [1 1 0 1 0 0] you need to reject 4 points, not 3

Lastly, the messing around with -Inf is really ugly. You should use tril to get an array corresponding to the lower entries which you can then insert the NaNs from. For example,

yy = rot90(triu(repmat(ys, 1, k), k-n), 2)' + tril(nan(size(yy)),-1);

20 Feb 2013 Keyboard replacement with stack trace Display a stack trace showing where keyboard was used Author: Romesh

Thanks for the suggestion, I am also a big fan of eliminating calls to eval() wherever possible. I've submitted an updated version incorporating both your changes

12 Feb 2012 FFT-based convolution Discrete convolution using FFT method Author: Bruno Luong

I think this says it all...

>> tic;C = convn(Vs,Vs);toc;
Elapsed time is 473.103412 seconds.
>> tic;C2 = convnfft(Vs,Vs);toc;
Elapsed time is 1.351315 seconds.
>> max(max(max(abs(C-C2))))
ans =
5.2208e-15

Thanks so much for this!

02 Dec 2011 Making MATLAB Swing TabbedPanes, SplitPanes, SideBars, ScrollPanes etc for MATLAB Author: Malcolm Lidierth

Fantastic work. I'm also interested in the MCC, and successfully compiled the demo on Mac OS R2011a with only one issue:

Depfun error: 'Method 'getBackground' in class 'GSideBar' uses different access permissions than its super-class 'GTool'.'

The compiled code seems to run fine after I deleted this file. I ran waterloo.m before mcc. I guess I'll need to send some emails to work out exactly what constitutes a derivative work/whether including the source code for just the waterloo part of the project is sufficient (my current impression is that this would be acceptable...?)

Comments and Ratings on Romesh 's Files View all
Updated File Comment by Comments Rating
20 Feb 2013 Keyboard replacement with stack trace Display a stack trace showing where keyboard was used Author: Romesh Romesh

Thanks for the suggestion, I am also a big fan of eliminating calls to eval() wherever possible. I've submitted an updated version incorporating both your changes

20 Feb 2013 Keyboard replacement with stack trace Display a stack trace showing where keyboard was used Author: Romesh per isakson

Your idea is very good. I've never been comfortable with KEYBOARD. To me your function provides a "persistent" break-point. However, I have modified the code to handle functions in packages.

stk = dbstack('-completenames');
dbstop( 'in', stk(2).file, 'at', num2str( stk(2).line+1 ) )

Contact us