Why I am getting negative values in my low pass filter results?

7 visualizzazioni (ultimi 30 giorni)
Why I am getting negative values in my low pass filter ?
  2 Commenti
Vilém Frynta
Vilém Frynta il 8 Apr 2023
You're not making it easy for us to help you. Provide your data, your code etc.
Image Analyst
Image Analyst il 11 Apr 2023
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

Accedi per commentare.

Risposte (1)

Sam Chak
Sam Chak il 11 Apr 2023
Since you asked, I'm guessing the input values are negative.
t = linspace(0, 10, 1001);
lpf = tf(1, [1 1]) % Low-pass Filter
lpf = 1 ----- s + 1 Continuous-time transfer function.
u = ones(1, length(t));
lsim(lpf, -u, t), ylim([-1.2 0])

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by