matlab code for filter
frederic manseau
f.manseau at ebri.it
Wed Feb 4 05:01:16 CST 2009
Hi,
I found this Matlab code for filtering data which is supposed to do a Local
regression using weighted linear least squares and a 1st degree polynomial
model.
pethsmooth=smooth(x,50,'rloess');%%%%%%this uses a Matlab function 'rloess'
to smooth the data based on how ever number of points you want
belowzero=pethsmooth<0;%%%%%% this detects points below zero (you can't have
a negative firing rate)
pethsmooth(belowzero)=0; %%%%this sets all those <0 points to 0 in the
smoothed PETH
Would anyone know if it's possible to adapt this so that it can be used in
Octave?
Thank you for your help,
Frederic Manseau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090204/dd5545c7/attachment.html
More information about the Help-octave
mailing list