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?

回答(2 个)

Wayne King
Wayne King 2012-1-24

0 个投票

Do you have fdesign.octave in your installation?
You can design both octave and 1/3 octave filters with fdesign.octave

3 个评论

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?

请先登录,再进行评论。

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 个评论

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

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Measurements and Spatial Audio 的更多信息

产品

标签

提问:

2012-1-24

Community Treasure Hunt

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

Start Hunting!

Translated by