clc;
clear all;
close all;
Ap=input('Enter the passband ripple in db:\n');
As=input('Enter the stopband attenuation in db:\n');
Wp=input('Enter the pass band edge frequency in rad:\n');
Ws=input('Enter the stop band edge frequency in rad:\n');
Fs=input('Enter sampling frequency in Hz:\n');
Omgp=Wp*Fs;
Omgs=Ws*Fs;
[N,W]=cheb1ord(Omgp,Omgs,Ap,As,'s');
[num,den]=cheby1(N,Ap,W,'low','s');
[B,A]=impinvar(num,den,Fs);
w=0:0.01:pi;
[h,ph]=freqz(B,A,w);
m=20*log(abs(h));
an=angle(h);
subplot(211);
plot(ph/pi,m);
grid;
xlabel('Frequency in Hz');
ylabel('Gain in db');
title('Frequency response of the Chebyshev filter');
subplot(212);
plot(ph/pi,an);
grid;
ylabel('Phase in rad');
xlabel('Frequency in Hz');
Enjoyed your approach to explaining how it works, hope to see more blog posts from you. thank you!
ReplyDeleteArticle submission sites
Education
Nice content. The blog is very useful for me and freshers to know about this domain. Thank you.
ReplyDeleteJava Training in Bangalore
Best Java Training Institutes in Bangalore
Java Training in Madurai
Best Java Training Institute in Madurai
Java Training in Coimbatore
Java Course in Coimbatore
I feel satisfied to read your blog, you have been delivering a useful & unique information to our vision.keep blogging.
ReplyDeleteRegards,
Blue Prism Training in Chennai
UiPath Training in Chennai
Machine Learning course in Chennai
Blue Prism Training in Anna Nagar
Blue Prism Training in T Nagar
Blue Prism Training in Velachery
Blue Prism Training in Tambaram
Enjoyed a lot by reading your article.
ReplyDeleteAngularJS training in chennai | AngularJS training in anna nagar | AngularJS training in omr | AngularJS training in porur | AngularJS training in tambaram | AngularJS training in velachery