Has the bandpass filter function changed recently?

2 views (last 30 days)
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

Accepted Answer

Wayne King
Wayne King on 30 Jul 2013
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

More Answers (1)

Rosie
Rosie on 30 Jul 2013
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.

Community Treasure Hunt

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

Start Hunting!