Has the bandpass filter function changed recently?

조회 수: 1 (최근 30일)
Rosie
Rosie 2013년 7월 30일
I am using the Bandpass filter function as shown below:
d = fdesign.bandpass('N,F3dB1,F3dB2',Order,F3dB1,F3dB2,Fs);
d1 = design(d,'butter');
where I commonly specify N as 4, F3dB1 as 5 and F3dB2 as 450 and Fs as 2000.
I have used this many times up to yesterday and it worked fine. Today I am getting an error message as shown below:
"Error using fdesign.bandpass/set The name 'SpecificationType' is not an accessible property for an instance of class 'bandpass'."
I don't know whether there has been a sudden change in the input specifications, but even if I try and run one of the examples from the help file I get the same message. I will be very grateful to see if anyone else has come across this or if anyone can suggest why it's suddenly changed! Thanks, Rosie

채택된 답변

Wayne King
Wayne King 2013년 7월 30일
Hi, the following code should work:
Order = 4;
F3dB1 = 5;
F3dB2 = 450;
Fs = 2000;
d = fdesign.bandpass('N,F3dB1,F3dB2',Order,F3dB1,F3dB2,Fs);
d1 = design(d,'butter');
The only thing I can think of is that you have some file that is actually shadowing the actual UDD class file
Can you try the following:
dbstop in toolbox\signal\signal\@fdesign\@bandpass\bandpass.m
and then
d = fdesign.bandpass('N,F3dB1,F3dB2',Order,F3dB1,F3dB2,Fs);
to see if the debugger takes you to the correct file, should be:
toolbox\signal\signal\@fdesign\@bandpass\bandpass.m

추가 답변 (1개)

Rosie
Rosie 2013년 7월 30일
Thanks for your answer, I think it must have been something along those lines. Fortunately, closing down Matlab and re-opening it has fixed the issue, for now at least.

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by