Application of multistage decimator filter to signal
3 views (last 30 days)
Show older comments
Dear all
We had a piece of code to decimate data (decimation ratio (dec_factor) > 13) that read:
Hfd=fdesign.decimator(dec_factor,'Nyquist');
Hm=design(Hfd,'multistage');
signal_output=filter(Hm,signal_input);
Matlad is warning that
Warning: Multistage design using fdesign.decimator will be removed. Use designMultistageDecimator instead.
So we are replacing the codewith:
Astop = 80;
TW = 0.03*fs_sampling/2;
Hm=designMultistageDecimator(dec_factor,fs_sampling,TW,Astop,'CostMethod','design');
We don´t know what to do with Hm in order to apply the filter to get signal_input.
Any ideas?
Thanks in advance
0 Comments
Answers (2)
Manikanta Aditya
on 5 Mar 2024
Moved: Mathieu NOE
on 5 Mar 2024
The 'designMultistageDecimator' function in MATLAB returns a multistage decimator object, which you can use to filter your signal. The returned object 'Hm' is a multistage decimator object, and you can use it just like you used the 'Hm' object in your previous code.
Here’s how you can apply the filter to your signal:
signal_output = filter(Hm, signal_input);
This line of code applies the multistage decimator filter Hm to your input signal signal_input, and stores the result in 'signal_output'.
So, your complete code would look like this:
Astop = 80;
TW = 0.03*fs_sampling/2;
Hm = designMultistageDecimator(dec_factor, fs_sampling, TW, Astop, 'CostMethod', 'design');
signal_output = filter(Hm, signal_input);
4 Comments
Cláudio Jorge
on 5 Mar 2024
Thank you for your response.
I will incorporate a portion of the signal we're utilising, enabling to observe the errors that we had:
signal_input=[0,-0.0839259010589917,-0.00762962736899908,-0.129703665272988,0.00762962736899908,-0.0839259010589917,-0.0152592547379982,-0.129703665272988,0,-0.0991851557969898,-0.0228888821069972,-0.137333292641987,-0.00762962736899908,-0.0915555284279908,-0.0228888821069972,-0.137333292641987,-0.00762962736899908,-0.0991851557969898,-0.0152592547379982,-0.129703665272988,-0.00762962736899908,-0.0991851557969898,-0.0152592547379982,-0.129703665272988,0,-0.0915555284279908,-0.00762962736899908,-0.122074037903989,0.00762962736899908,-0.0839259010589917,-0.00762962736899908,-0.114444410534988,0.00762962736899908,-0.0915555284279908,-0.00762962736899908,-0.122074037903989,0.00762962736899908,-0.0915555284279908,0,-0.114444410534988,0.00762962736899908,-0.0915555284279908,0,-0.114444410534988,0.00762962736899908,-0.0915555284279908,0.00762962736899908,-0.106814783165989,0.0152592547379999,-0.0915555284279908,0,-0.106814783165989,0.0152592547379999,-0.0839259010589917,0.00762962736899908,-0.0991851557969898,0.0228888821069990,-0.0839259010589917,0.00762962736899908,-0.0991851557969898,0.0152592547379999,-0.0839259010589917,0.00762962736899908,-0.0991851557969898,0.0152592547379999,-0.0915555284279908,0.0152592547379999,-0.0915555284279908,0.0228888821069990,-0.0839259010589917,0.0152592547379999,-0.0915555284279908,0.0152592547379999,-0.0991851557969898,0,-0.0915555284279908,0.0305185094759981,-0.0762962736899926,0.0305185094759981,-0.0610370189519944,0.0534073915829953,-0.0686666463209935,0.0228888821069990,-0.0839259010589917,0.0228888821069990,-0.0915555284279908,0.0152592547379999,-0.0839259010589917,0.0305185094759981,-0.0839259010589917,0.0228888821069990,-0.0839259010589917,0.0305185094759981,-0.0915555284279908,0.0228888821069990,-0.0839259010589917,0.0305185094759981,-0.0915555284279908,0.0152592547379999,-0.0839259010589917,0.0305185094759981,-0.0915555284279908,0.0228888821069990,-0.0686666463209935,0.0381481368449972,-0.0839259010589917,0.0305185094759981,-0.0686666463209935,0.0381481368449972,-0.0686666463209935,0.0381481368449972,-0.0610370189519944,0.0534073915829953,-0.0534073915829953,0.0534073915829953,-0.0610370189519944,0.0610370189519944,-0.0457777642139945,0.0534073915829953,-0.0534073915829953,0.0686666463209935,-0.0381481368449954,0.0534073915829953,-0.0534073915829953,0.0534073915829953,-0.0457777642139945,0.0457777642139963,-0.0762962736899926,0.0457777642139963,-0.0457777642139945,0.0305185094759981,-0.0915555284279908,0.0381481368449972,-0.0534073915829953,0.0381481368449972,-0.0915555284279908,0.0381481368449972,-0.0534073915829953,0.0381481368449972,-0.0839259010589917,0.0381481368449972,-0.0534073915829953,0.0381481368449972,-0.0839259010589917,0.0457777642139963,-0.0534073915829953,0.0457777642139963,-0.0839259010589917,0.0534073915829953,-0.0457777642139945,0.0457777642139963,-0.0762962736899926,0.0534073915829953,-0.0457777642139945,0.0457777642139963,-0.0762962736899926,0.0534073915829953,-0.0457777642139945,0.0457777642139963,-0.0686666463209935,0.0534073915829953,-0.0457777642139945,0.0534073915829953,-0.0686666463209935,0.0534073915829953,-0.0457777642139945,0.0534073915829953,-0.0686666463209935,0.0534073915829953,-0.0457777642139945,0.0457777642139963,-0.0610370189519944,0.0610370189519944,-0.0381481368449954,0.0686666463209935,-0.0457777642139945,0.0686666463209935,-0.0305185094759963,0.0762962736899944,-0.0457777642139945,0.0686666463209935,-0.0381481368449954,0.0610370189519944,-0.0534073915829953,0.0762962736899944,-0.0381481368449954,0.0686666463209935,-0.0457777642139945,0.0686666463209935,-0.0381481368449954,0.0686666463209935,-0.0457777642139945,0.0686666463209935,-0.0457777642139945,0.0534073915829953,-0.0534073915829953,0.0762962736899944,-0.0305185094759963,0.0762962736899944,-0.0305185094759963,0.0915555284279925,-0.0305185094759963,0.0686666463209935,-0.0457777642139945,0.0610370189519944,-0.0457777642139945,0.0610370189519944,-0.0534073915829953,0.0534073915829953,-0.0534073915829953,0.0610370189519944,-0.0534073915829953,0.0610370189519944,-0.0457777642139945,0.0610370189519944,-0.0457777642139945,0.0610370189519944,-0.0534073915829953,0.0610370189519944,-0.0457777642139945,0.0610370189519944,-0.0534073915829953,0.0610370189519944,-0.0457777642139945,0.0610370189519944,-0.0534073915829953,0.0610370189519944,-0.0457777642139945,0.0686666463209935,-0.0534073915829953,0.0610370189519944,-0.0381481368449954,0.0686666463209935,-0.0457777642139945,0.0762962736899944,-0.0305185094759963,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0305185094759963,0.0915555284279925,-0.0152592547379982,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0305185094759963,0.0762962736899944,-0.0534073915829953,0.0610370189519944,-0.0457777642139945,0.0534073915829953,-0.0610370189519944,0.0534073915829953,-0.0381481368449954,0.0534073915829953,-0.0762962736899926,0.0534073915829953,-0.0381481368449954,0.0534073915829953,-0.0839259010589917,0.0610370189519944,-0.0381481368449954,0.0534073915829953,-0.0762962736899926,0.0610370189519944,-0.0381481368449954,0.0534073915829953,-0.0762962736899926,0.0610370189519944,-0.0381481368449954,0.0610370189519944,-0.0686666463209935,0.0610370189519944,-0.0381481368449954,0.0610370189519944,-0.0686666463209935,0.0686666463209935,-0.0305185094759963,0.0686666463209935,-0.0610370189519944,0.0610370189519944,-0.0381481368449954,0.0686666463209935,-0.0534073915829953,0.0686666463209935,-0.0228888821069972,0.0686666463209935,-0.0610370189519944,0.0762962736899944,-0.0228888821069972,0.0762962736899944,-0.0534073915829953,0.0762962736899944,-0.0228888821069972,0.0839259010589935,-0.0457777642139945,0.0839259010589935,-0.0152592547379982,0.0839259010589935,-0.0457777642139945,0.0762962736899944,-0.0305185094759963,0.0762962736899944,-0.0457777642139945,0.0762962736899944,-0.0228888821069972,0.0839259010589935,-0.0457777642139945,0.0686666463209935,-0.0305185094759963,0.0762962736899944,-0.0457777642139945,0.0762962736899944,-0.0381481368449954,0.0610370189519944,-0.0534073915829953,0.0762962736899944,-0.0152592547379982,0.0915555284279925,-0.0228888821069972,0.106814783165991,0,0.0915555284279925,-0.0381481368449954,0.0839259010589935,-0.0152592547379982,0.0839259010589935,-0.0457777642139945,0.0762962736899944,-0.0228888821069972,0.0762962736899944,-0.0457777642139945,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0457777642139945,0.0762962736899944,-0.0305185094759963,0.0762962736899944,-0.0457777642139945,0.0762962736899944,-0.0305185094759963,0.0839259010589935,-0.0457777642139945,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0228888821069972,0.0915555284279925,-0.0305185094759963,0.0839259010589935,-0.0152592547379982,0.0915555284279925,-0.0228888821069972,0.0991851557969916,-0.00762962736899908,0.0991851557969916,-0.0152592547379982,0.106814783165991,-0.00762962736899908,0.106814783165991,-0.0152592547379982,0.0991851557969916,-0.00762962736899908,0.0991851557969916,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0228888821069972,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0991851557969916,-0.0152592547379982,0.0991851557969916,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0991851557969916,-0.0305185094759963,0.0915555284279925,-0.0305185094759963,0.0762962736899944,-0.0381481368449954,0.0915555284279925,-0.0152592547379982,0.0991851557969916,-0.0152592547379982,0.122074037903989,0.00762962736899908,0.114444410534990,-0.0228888821069972,0.0991851557969916,-0.0152592547379982,0.0991851557969916,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0839259010589935,-0.0381481368449954,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0152592547379982,0.0991851557969916,-0.0228888821069972,0.0915555284279925,-0.0152592547379982,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0152592547379982,0.0915555284279925,-0.0228888821069972,0.0991851557969916,-0.0152592547379982,0.0991851557969916,-0.0228888821069972,0.0991851557969916,-0.00762962736899908,0.106814783165991,-0.00762962736899908,0.106814783165991,-0.00762962736899908,0.114444410534990,0.0152592547379999,0.122074037903989,0,0.122074037903989,0.0152592547379999,0.122074037903989,-0.00762962736899908,0.114444410534990,0.00762962736899908,0.106814783165991,-0.0152592547379982,0.0991851557969916,0,0.0991851557969916,-0.0305185094759963,0.106814783165991,0.00762962736899908,0.106814783165991,-0.0381481368449954,0.0991851557969916,0.00762962736899908,0.0991851557969916,-0.0381481368449954,0.0991851557969916,0,0.0991851557969916,-0.0381481368449954,0.0991851557969916,0.00762962736899908,0.0991851557969916,-0.0381481368449954,0.0991851557969916,0.0152592547379999,0.0991851557969916,-0.0381481368449954,0.0991851557969916,0.00762962736899908,0.106814783165991,-0.0381481368449954,0.0991851557969916,0.00762962736899908,0.0991851557969916,-0.0381481368449954,0.0991851557969916,0.00762962736899908,0.106814783165991,-0.0305185094759963,0.106814783165991,0.00762962736899908,0.106814783165991,-0.0381481368449954,0.106814783165991,0.00762962736899908,0.0991851557969916,-0.0381481368449954,0.0991851557969916,0.00762962736899908,0.106814783165991,-0.0381481368449954,0.106814783165991,0,0.106814783165991,-0.0228888821069972,0.106814783165991,0,0.106814783165991,-0.0152592547379982,0.0991851557969916,-0.00762962736899908,0.106814783165991,-0.0152592547379982,0.0991851557969916,-0.00762962736899908,0.106814783165991,-0.0305185094759963,0.0991851557969916,-0.0152592547379982,0.0915555284279925,-0.0228888821069972,0.0839259010589935,-0.0381481368449954,0.0991851557969916,0.00762962736899908,0.106814783165991,-0.0152592547379982,0.122074037903989,0.0152592547379999,0.114444410534990,-0.0228888821069972,0.0991851557969916,-0.0152592547379982,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0381481368449954,0.0839259010589935,-0.0228888821069972,0.0915555284279925,-0.0381481368449954,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0305185094759963,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0381481368449954,0.0839259010589935,-0.0228888821069972,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0152592547379982,0.0915555284279925,-0.0305185094759963,0.0915555284279925,-0.0152592547379982,0.0991851557969916,-0.0152592547379982,0.106814783165991,-0.00762962736899908,0.106814783165991,-0.0152592547379982,0.106814783165991,0,0.106814783165991,-0.0152592547379982,0.106814783165991,-0.00762962736899908,0.0991851557969916,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0915555284279925,-0.0305185094759963,0.0839259010589935,-0.0305185094759963,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0839259010589935,-0.0381481368449954,0.0762962736899944,-0.0305185094759963,0.0839259010589935,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0839259010589935,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0457777642139945,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0457777642139945,0.0762962736899944,-0.0381481368449954,0.0686666463209935,-0.0457777642139945,0.0762962736899944,-0.0457777642139945,0.0686666463209935,-0.0381481368449954,0.0839259010589935,-0.0305185094759963,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0305185094759963,0.0762962736899944,-0.0457777642139945,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0839259010589935,-0.0381481368449954,0.0762962736899944,-0.0457777642139945,0.0762962736899944,-0.0381481368449954,0.0762962736899944,-0.0534073915829953,0.0686666463209935,-0.0381481368449954,0.0839259010589935,-0.0305185094759963,0.0991851557969916,0,0.106814783165991,-0.0228888821069972,0.0915555284279925,-0.0228888821069972,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0305185094759963,0.0762962736899944,-0.0457777642139945,0.0839259010589935,-0.0228888821069972,0.0762962736899944,-0.0457777642139945,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0381481368449954,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0457777642139945,0.0839259010589935,-0.0228888821069972,0.0762962736899944,-0.0457777642139945,0.0839259010589935,-0.0228888821069972,0.0839259010589935,-0.0457777642139945,0.0839259010589935,-0.0152592547379982,0.0839259010589935,-0.0457777642139945,0.0915555284279925,-0.0152592547379982,0.0915555284279925,-0.0305185094759963,0.0991851557969916,0.00762962736899908,0.0991851557969916,-0.0228888821069972,0.114444410534990,0.00762962736899908,0.0991851557969916,-0.0381481368449954,0.0915555284279925,-0.0152592547379982,0.0762962736899944,-0.0534073915829953,0.0762962736899944,-0.0228888821069972,0.0686666463209935,-0.0610370189519944,0.0762962736899944,-0.0305185094759963,0.0610370189519944,-0.0686666463209935,0.0686666463209935,-0.0381481368449954,0.0534073915829953,-0.0610370189519944,0.0686666463209935,-0.0534073915829953,0.0534073915829953,-0.0610370189519944,0.0610370189519944,-0.0457777642139945,0.0534073915829953,-0.0610370189519944,0.0610370189519944,-0.0457777642139945,0.0534073915829953,-0.0610370189519944,0.0610370189519944,-0.0610370189519944,0.0457777642139963,-0.0610370189519944,0.0534073915829953,-0.0686666463209935,0.0457777642139963,-0.0610370189519944,0.0534073915829953,-0.0686666463209935,0.0381481368449972,-0.0610370189519944,0.0534073915829953,-0.0686666463209935,0.0381481368449972,-0.0610370189519944,0.0534073915829953,-0.0762962736899926,0.0381481368449972,-0.0610370189519944,0.0457777642139963,-0.0686666463209935,0.0381481368449972,-0.0686666463209935,0.0610370189519944,-0.0610370189519944,0.0381481368449972,-0.0686666463209935,0.0534073915829953,-0.0686666463209935,0.0305185094759981,-0.0686666463209935,0.0534073915829953,-0.0686666463209935,0.0305185094759981,-0.0839259010589917,0.0457777642139963,-0.0762962736899926,0.0228888821069990,-0.0839259010589917,0.0381481368449972,-0.0762962736899926,0.00762962736899908,-0.0991851557969898,0.0305185094759981,-0.0762962736899926,0.0228888821069990,-0.0839259010589917,0.0534073915829953,-0.0457777642139945,0.0381481368449972,-0.0839259010589917,0.0381481368449972,-0.0762962736899926,0.0152592547379999,-0.0915555284279908,0.0381481368449972,-0.0762962736899926,0.0152592547379999,-0.0991851557969898,0.0305185094759981,-0.0762962736899926,0.00762962736899908,-0.0991851557969898,0.0305185094759981,-0.0839259010589917,0.00762962736899908,-0.0915555284279908,0.0305185094759981,-0.0839259010589917,0.0152592547379999,-0.0839259010589917,0.0381481368449972,-0.0839259010589917,0.0152592547379999,-0.0839259010589917,0.0457777642139963,-0.0762962736899926,0.0228888821069990,-0.0686666463209935,0.0534073915829953,-0.0762962736899926,0.0305185094759981,-0.0534073915829953,0.0610370189519944,-0.0686666463209935,0.0534073915829953,-0.0381481368449954,0.0686666463209935,-0.0534073915829953,0.0610370189519944,-0.0305185094759963,0.0839259010589935,-0.0457777642139945,0.0534073915829953,-0.0381481368449954,0.0762962736899944,-0.0610370189519944,0.0457777642139963,-0.0457777642139945,0.0610370189519944,-0.0686666463209935,0.0381481368449972,-0.0534073915829953,0.0610370189519944,-0.0610370189519944,0.0381481368449972,-0.0534073915829953,0.0686666463209935,-0.0610370189519944,0.0381481368449972,-0.0457777642139945,0.0686666463209935,-0.0610370189519944,0.0305185094759981,-0.0534073915829953,0.0686666463209935,-0.0610370189519944,0.0381481368449972,-0.0534073915829953,0.0610370189519944,-0.0534073915829953,0.0381481368449972,-0.0534073915829953,0.0686666463209935,-0.0534073915829953,0.0381481368449972,-0.0534073915829953,0.0686666463209935,-0.0534073915829953,0.0457777642139963,-0.0457777642139945,0.0762962736899944,-0.0457777642139945,0.0457777642139963,-0.0534073915829953,0.0762962736899944,-0.0457777642139945,0.0381481368449972,-0.0610370189519944,0.0686666463209935,-0.0457777642139945,0.0457777642139963,-0.0534073915829953,0.0686666463209935,-0.0457777642139945,0.0381481368449972,-0.0610370189519944,0.0762962736899944,-0.0381481368449954,0.0457777642139963,-0.0534073915829953,0.0762962736899944,-0.0381481368449954,0.0457777642139963,-0.0534073915829953,0.0686666463209935,-0.0381481368449954,0.0381481368449972,-0.0610370189519944,0.0686666463209935,-0.0381481368449954,0.0381481368449972,-0.0686666463209935,0.0610370189519944,-0.0381481368449954,0.0381481368449972,-0.0686666463209935,0.0610370189519944,-0.0534073915829953,0.0152592547379999,-0.0762962736899926,0.0686666463209935,-0.0381481368449954,0.0457777642139963,-0.0457777642139945,0.0991851557969916,-0.0228888821069972,0.0381481368449972,-0.0610370189519944,0.0686666463209935,-0.0534073915829953,0.0305185094759981,-0.0610370189519944,0.0610370189519944,-0.0534073915829953,0.0305185094759981,-0.0610370189519944,0.0610370189519944,-0.0610370189519944,0.0228888821069990,-0.0686666463209935,0.0534073915829953,-0.0610370189519944,0.0228888821069990,-0.0686666463209935,0.0610370189519944,-0.0686666463209935,0.0152592547379999,-0.0534073915829953,0.0610370189519944,-0.0686666463209935,0.0228888821069990,-0.0610370189519944,0.0610370189519944,-0.0610370189519944,0.0228888821069990,-0.0534073915829953,0.0686666463209935,-0.0534073915829953,0.0381481368449972,-0.0381481368449954,0.0762962736899944,-0.0381481368449954,0.0457777642139963,-0.0381481368449954,0.0839259010589935,-0.0305185094759963,0.0534073915829953,-0.0381481368449954,0.0839259010589935,-0.0381481368449954,0.0381481368449972,-0.0534073915829953,0.0686666463209935,-0.0534073915829953,0.0228888821069990,-0.0610370189519944,0.0534073915829953,-0.0610370189519944,0.0228888821069990,-0.0762962736899926,0.0534073915829953,-0.0534073915829953,0.0228888821069990,-0.0686666463209935];
dec_factor=50;
fs_sampling=200;
Astop = 80;
TW = 0.03*fs_sampling/2;
Hm = designMultistageDecimator(dec_factor, fs_sampling, TW, Astop, 'CostMethod', 'design');
signal_output = filter(Hm, signal_input);
Thanks in advance.
Dana Massie
on 24 Jul 2024
I have exactly the same error message from the same code. Running R2024a.
Paul
on 24 Jul 2024
M = 48;
Fin = 30.72e6*M;
Astop = 90;
BW = 1e7;
Fc = Fin/(2*M);
TW = 2*(Fc-BW);
c = designMultistageDecimator(M,Fin,TW,Astop)
This object does not have a filter method.
methods(c)
Instead, operate on an input by use the object like a function call, as shown at dsp.FilterCascade
u = rand(4800,1);
y1 = c(u);
Reset the object to use again from scratch
reset(c);
y2 = c(u);
isequal(y1,y2)
0 Comments
See Also
Categories
Find more on Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!