Can anybody help me with the following code?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Darsana P M
el 16 de Mzo. de 2017
Comentada: Darsana P M
el 17 de Mzo. de 2017
[z,fs]=audioread('bird1.mp3');
bfil=fft(z); %fft of input signal
wn=[4000 8000]/(fs/2); %bandpass
[b,a]=butter(6,wn);
fvtool(b,a);
I was able to draw the graph for this particular range. Can i draw wn=[8000 12000]/(fs/2); n the same graph itself, instead of another figure???
0 comentarios
Respuesta aceptada
GEEVARGHESE TITUS
el 16 de Mzo. de 2017
I not sure of obtaining multiple plots in the same window using fvtool. Instead you can get what you required, using functions freqz(), plot() and hold on.
[z,fs]=audioread('bird1.mp3');
bfil=fft(z); %fft of input signal
wn=[4000 8000]/(fs/2); %bandpass
[b,a]=butter(6,wn);
[h,w]=freqz(b,a);
plot(w/pi,20*log10(abs(h)),'r');
hold on;
wn=[8000 12000]/(fs/2);
[b,a]=butter(6,wn);
[h,w]=freqz(b,a);
plot(w/pi,20*log10(abs(h)),'b');
3 comentarios
GEEVARGHESE TITUS
el 17 de Mzo. de 2017
Sorry , i was not able to understand your question? Elaborate please. Are you thinking of bank of butterworth filers?
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!