This is the same as Problem 12.
This solution returns f(0) = 1, which contradicts the decription of the given problem.
This solution uses filter from the Signal Processing Toolbox.
Yes, it uses filter, but filter is indeed not a toolbox function, but a built-in function. You can fix the error by changing f=y(n-2) to f = y(n)
... and then change first input of filter to [1,-1] and remove +1 from the end of the line.
Remove the small words from a list of words.
677 Solvers
given 3 sides, find area of this triangle
684 Solvers
252 Solvers
The Answer to Life, the Universe, and Everything
387 Solvers
291 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!