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 Center および File ExchangeMatched 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