Why do i receive Incorrect result in Filter Design and Analysis Methods?

40 views (last 30 days)
Hello,
I'm taking a self-paced course in Filter Design and Analysis Methods. When I reach the module "Filter Analysis" --> "Impulse Response" I come across an error that I don't know why it's happening. Can someone help?
The task i have to do is to create a bandpass FIR filter (which I do) but when I try to Submit it the message I receive is always the same "Incorrect
Is the plot correct?"
And the plot is correct, I have compared side-by-side the plot with the one in "See solution".
What can I do?

Accepted Answer

Renee Coetsee
Renee Coetsee on 11 Nov 2025 at 16:00
We are working on releasing a fix for this issue.
In the meantime, you can use code instead of live tasks for this activity.
For task 1, enter this code:
designedFIR = designfilt('bandpassfir', ...
'StopbandFrequency1',2100,'PassbandFrequency1',2200, ...
'PassbandFrequency2',2500,'StopbandFrequency2',2600, ...
'StopbandAttenuation1',80,'PassbandRipple',1, ...
'StopbandAttenuation2',60,'SampleRate',fs);
impz(designedFIR,[],fs)
For task 2, enter this code:
designedIIR = designfilt('bandpassiir', ...
'StopbandFrequency1',2100,'PassbandFrequency1',2200, ...
'PassbandFrequency2',2500,'StopbandFrequency2',2600, ...
'StopbandAttenuation1',60,'PassbandRipple',1, ...
'StopbandAttenuation2',60,'SampleRate',fs);
impz(designedIIR,[],fs)

More Answers (0)

Categories

Find more on Digital and Analog Filters in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!