Has the bandpass filter function changed recently?

1 次查看(过去 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