Filter Funciton in Matlab

Status
Not open for further replies.

Eowe

Newbie level 2
Joined
Aug 3, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
12
Guys I need to get filter function using coefficent of notch filter.First What is transfer function of notch filter?How can I use this transfer function with filter function lets say our input signal
Code:
t=0:dt:0.2;
x=cos(2*pi*25*t)+cos(2*pi*50*t);
I want to filter this input signal with filter function
Code:
y=filter(b,a,x);
Lastly how can I draw magnitude spectrum of this filter with freqz if notch frequency is 50 hertz?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…