Home Chebyshev filter in matlab
Reply: 1

Chebyshev filter in matlab

stackingnauledge
1#
stackingnauledge Published in 2018-01-11 21:20:43Z

I have to design highpass filter using cheby1 where cutoff frequency is 100 Hz this is what i came to:

sf=3500;%sampling frequency
T = 1/sf; 
L = 1000; % samples
t = (0:L-1)*T; 
s=sin(2*pi*85*t)+ sin(2*pi*500*t)+ sin(2*pi*1600*t);%signal

t1 = linspace(0,2*pi,200)
[b,a]   = cheby1(4,1,0.1);  
[H,w] = freqz(b,a,512);
fs = filter(b,a,s)
s = fft(s,512);
fs1= fft(fs,512);

And its not working, any help?

AnonSubmitter85
2#
AnonSubmitter85 Reply to 2018-01-11 22:28:01Z

You are just missing an argument from cheby1. Try the following:

[b,a]   = cheby1( 4, 1, 0.1, 'high' );  
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.349108 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO