Octave band filtering problem
조회 수: 2 (최근 30일)
이전 댓글 표시
Hey,
I'm doing some octave-band filtering for a project, and I got code from http://www.mathworks.com/help/dsp/examples/octave-band-and-fractional-octave-band-filters.html and it works fine on my desktop Mac (running Matlab 2009b). But I've ported it to a laptop I need for an experiment, and the basic code is giving an error as if it's never heard of this. Here's the basic example:
bandsPerOctave = 1;
filterOrder = 2;
F0 = 1000;
Fs = 48000;
indexBand =1;
f = fdesign.octave(bandsPerOctave,'Class 1','N,F0',filterOrder,F0,Fs);
F0 = validfrequencies(f);
f.F0 = F0(indexBand);
Hd(indexBand) = design(f,'butter');
% On my laptop, this gives the following error:
??? Error using ==> fdesign.abstracttype.butter at 17
Undefined function or variable 'fdfmethod.butteroctave'.
Error in ==> fdesign.abstracttype.superdesign at 106
Hd = feval(method, this, varargin{:});
Error in ==> fdesign.abstracttype.design at 11
varargout{1} = superdesign(this, varargin{:});
Error in ==> errorTestingScript at 13
Hd(indexBand) = design(f,'butter');
It seems like something basic is wrong in the signal processing toolbox. This error occurs on the laptop whether I'm running Matlab 2010a or 2012a. Does anyone have any idea what's happening here?
Thanks so much!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!