how can Matlab's filter() function generate the output y[n] when the input is given by the plot in the image with input long enough to see all the non-zero values of y[n].
Show older comments

2 Comments
Walter Roberson
on 16 Oct 2023
You can read off the signal input values... but in order to work with filter() you need to know the filter coefficients.
Chuki Ocheje
on 16 Oct 2023
Answers (1)
Walter Roberson
on 16 Oct 2023
Edited: Walter Roberson
on 17 Oct 2023
Since no constraints are given on what the output signal should look like, you might as well make the output be exactly the same as the input.
x = [1 4 3 2 3]
subplot(2,1,1); stem(x); title('input signal')
y = filter(1,1,x)
subplot(2,1,2); stem(y); title('output signal')
6 Comments
Chuki Ocheje
on 17 Oct 2023
Walter Roberson
on 17 Oct 2023
That is all you have asked for. I would imagine that in context the y[n] that needed to be matched was defined in a previous part of the question.
Chuki Ocheje
on 17 Oct 2023
Walter Roberson
on 17 Oct 2023
Well, what was the result of your (e) ? The "overall cascade system" is the y[n] that they are looking for.
Chuki Ocheje
on 17 Oct 2023
Paul
on 17 Oct 2023
What does that notation for h2[n] mean? I'm not familiar with that brace-and-arrow ...
Categories
Find more on Filter Analysis 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!
