# Gaussian filtering signal

Status
Not open for further replies.

#### KlaussIT

##### Newbie level 5
I would like to know how to properly filter a cosinus wave signal with a Gaussian Filter. I thought to use 'conv' to perform it. My code as follows :

Code:
s = cos(2*pi*f*t);
h = 1/(1/(sqrt(2*pi*var))*exp(-t.^2/2*var); %gauss filter
sF = conv(h,s,'same');

I used 'same' to keep the same length. Is it correct this method of filtering ? Another question, I heard about a parameter 'BT' (close to 0.5) for Gaussian Filter, how can I include it ? sigma = BT ?

Best regards.

Status
Not open for further replies.

Replies
3
Views
1K
Replies
1
Views
1K
Replies
4
Views
2K
Replies
2
Views
16K
Replies
2
Views
1K