Function Octbank in Matlab

I found function for one-third-octave filter:
Can someone help me and tell how it will look similar function for octave filter?

Answers (2)

Wayne King
Wayne King on 24 Jan 2012
Do you have fdesign.octave in your installation?
You can design both octave and 1/3 octave filters with fdesign.octave

3 Comments

Yes, I have. But I have a work function for the 1/3-octave filters (see link above), and I need function for octave filters for on the basis of this function.
but fdesign.octave can handle both 1/3 and octave very easily.
It's easy for you, but not for me :(. Could you remake function Oct3bank for me using fdesign.octave?

Sign in to comment.

Alexander, I don't see how using fdesign.octave with an input argument 1 (for octave band) vs. 3 (for 1/3 octave band) is harder than asking somebody to rewrite an entire function.
This is a 1/3 octave band design.
d1 = fdesign.octave(3,'Class 1','N,F0',6,10000,48000);
Hd1 = design(d1);
fvtool(Hd1);
This is an octave band design.
d2 = fdesign.octave(1,'Class 1','N,F0',6,1000,48000);
Hd2 = design(d2);
fvtool(Hd2);

3 Comments

Wayne, I approximately understood how does work your function for octave filters, but i have one question: there are 17 octave filters in IEC 1260, but if i call following Matlab code
fm = 1000; % center freq
f = fdesign.octave(BandsPerOctave,'Class 1','N,F0',3,fm,65536);
fm = validfrequencies(f);
I get only 10 frequencies in fm variable. If you please can you tell me why it accuses?
BandsPerOctave is equal 1
Hi,
I'm using fdesign as Wayne suggest but the problem is that this function only reach to 20KHz and I need to be able to analyze also frequencies close to 50KHz. Anyone knows how to increase the bandwidth of fdesign or any other way of solving the problem?
All the best

Sign in to comment.

Categories

Find more on Measurements and Spatial Audio in Help Center and File Exchange

Products

Asked:

on 24 Jan 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!