Rank: 1836 based on 40 downloads (last 30 days) and 3 files submitted
photo

Diederick

E-mail
Company/University
The University of Hong Kong

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Diederick View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Feb 2012 MergeCell Merges contents of multiple cell arrays into one big cell array, with expansion Author: Diederick cell, append, concat 0 4
  • 2.0
2.0 | 1 rating
21 Jun 2011 Screenshot histograms for ND data Create histograms for ND data using ND bins Author: Diederick histogram, nd data, 2d, 3d, statistics 11 0
  • 5.0
5.0 | 1 rating
04 Feb 2011 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick filtering, differentiation, smoothing, savitzkygolay 29 8
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Diederick View all
Updated File Comments Rating
11 May 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick

Hi David,

I'm actually not sure what you mean by "smooth at the level of 26nm". Maybe its better to ask on the matlab mailing list (see newsgroup in the navigation menu).

Best,
Dee

10 May 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick

Hi David,

I assume you mean that your data is sampled at 26 Hz?

If you get your filter output as follows
output = savitzkyGolayFilt(input,polynomial_order,4,filter_length);

then you would have to scale as follows:
output_correct_scaling = output*26^4;
which is equivalent to:
T = 1/26; % sampling interval: 1/26th second between each sample
output_correct_scaling = output/T^4;

Hope that helps,
Best,
Dee

21 Feb 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick

Thank you Brandon :)
That fix would do the trick. But I prefer staying consistent with matlab's sgolay so this can be used as a more advanced drop-in replacement. Thanks for documenting it here though, as others might run into the same issues!

29 Sep 2011 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick

It is, its sign is opposite. This is consistent with Matlab's sgolay function

12 Aug 2011 DOTNOT - Dot Notation Implements a replacement interface to GET/SET for graphic/gui options. Author: Peter Rydesäter

This is indeed a really good idea, and the example in the image thumbnail is very impressive, turning findobj into a selector! Hope this is picked up by Mathworks, it would also make programming publication quality figures much easier. And with a buildin class to provide such support, it would be very easy to use and no problem at all to use concurrently with the old style get/set

Comments and Ratings on Diederick's Files View all
Updated File Comment by Comments Rating
11 May 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick Diederick

Hi David,

I'm actually not sure what you mean by "smooth at the level of 26nm". Maybe its better to ask on the matlab mailing list (see newsgroup in the navigation menu).

Best,
Dee

10 May 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick McElroy, David

Thanks for the quick reply, Dee. My data is wavelength reflectance data which is equally spaced from 350-2500nm, so my sampling interval is in nm. On running your suggestion, it appears the scaling itself was apparently not the issue - the data points are sampled 1nm apart, but I want to smooth at the level of 26nm. Is that possible with some call to this function, or what would I need to use something else?

10 May 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick Diederick

Hi David,

I assume you mean that your data is sampled at 26 Hz?

If you get your filter output as follows
output = savitzkyGolayFilt(input,polynomial_order,4,filter_length);

then you would have to scale as follows:
output_correct_scaling = output*26^4;
which is equivalent to:
T = 1/26; % sampling interval: 1/26th second between each sample
output_correct_scaling = output/T^4;

Hope that helps,
Best,
Dee

09 May 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick McElroy, David

G'Day,

I'm using a 4th derivative with a sampling interval of 26. Could we see an example of how to " scale the output by 1/T^DN"?

Thanks!

03 Mar 2012 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick rjones

Top Tags Applied by Diederick
2d, 3d, append, cell, concat
Files Tagged by Diederick View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Feb 2012 MergeCell Merges contents of multiple cell arrays into one big cell array, with expansion Author: Diederick cell, append, concat 0 4
  • 2.0
2.0 | 1 rating
21 Jun 2011 Screenshot histograms for ND data Create histograms for ND data using ND bins Author: Diederick histogram, nd data, 2d, 3d, statistics 11 0
  • 5.0
5.0 | 1 rating
04 Feb 2011 Savitzky-Golay smooth/differentiation filters and filter application Routine to generate Savitzky-Golay smoothing and differentiation filters and routine to apply these Author: Diederick filtering, differentiation, smoothing, savitzkygolay 29 8
  • 5.0
5.0 | 2 ratings

Contact us