|
From: | frederic manseau |
Subject: | matlab code for filter |
Date: | Wed, 4 Feb 2009 12:01:16 +0100 |
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 |
[Prev in Thread] | Current Thread | [Next in Thread] |