IIR.M

Electronics For You - - Section -

w=2*pi*f; hd=freqz(hdb,hda,f,fs); hd­norm=(hd/hd(1)); ha=freqs(hab,haa,w); fig­ure(1); loglog(f,20*log10(abs(hd­norm)),’r’,f,20 *log10(abs(ha)),’b’); ti­tle(‘mag­ni­tude ‘) grid on; xla­bel(‘log freq ­­>’) ; yla­bel(‘log am­pli­tude ­­>’) ; fig­ure(2); semilogx(f,an­gle(hd­norm),’r’,f,an­gle(h a),’b’); ti­tle(‘phase ‘) grid on; xla­bel(‘log freq ­­>’) ; yla­bel(‘am­pli­tude ­­>’) ; %Out­put. %En­ter the 3db fre­quency = 150

Newspapers in English

Newspapers from India

© PressReader. All rights reserved.