logo       

lpf design querry: msg#00020

gnu.octave.bugs

Subject: lpf design querry

hi,
when i use matlab for lpf filter design there i get more number of
coefficients comparing to the octave.
is the implimentation of buttord is different?
below is my code:

sampfreq=6000;
freq1=200;
freq2=500;
wp=((freq1*2)/sampfreq);
ws=((freq2*2)/sampfreq);
rp=0.0001;
rs=20;
[N,WN]=buttord(wp,ws,rp,rs);
b=fir1(N,WN);
y= [b]*2^15;
fid = fopen('C:\\Documents and Settings\\balajid\\Desktop\\filter.dat','w');
for n=1:N+1
fprintf(fid,'%d,\n',y(n));
endfor
fclose(fid);

thanks&regards
balaji.d

Attachment: disclaimer.txt
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise