MATLAB Answers

Info

This question is closed. Reopen it to edit or answer.

digital filter fail to be applied to signal

1 view (last 30 days)
Ludwig
Ludwig on 18 Nov 2014
Closed: MATLAB Answer Bot on 20 Aug 2021 at 16:59
Hi,
I have create a custom filter which fails to be applied to signals.
Within the code (attached) I have tried to apply the filter to a signal (combination of sin-waves) to study its effects. Using fvtool, the bode plot displays what I would expect, but it fails to be applied to a signal I provide, it only returns Nan for most of the elements. This should be a type of low pass Butterworth filter and should not change the signal I have provided by much.
I would appreciate if anyone can point out what I am doing wrong. In the code there is a simple snippet for a RC filter, which works fine, but the custom one fails.
Regards

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by