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

6 vues (au cours des 30 derniers jours)
Zahra
Zahra le 8 Avr 2023
Why I am getting negative values in my low pass filter ?
  2 commentaires
Vilém Frynta
Vilém Frynta le 8 Avr 2023
You're not making it easy for us to help you. Provide your data, your code etc.
Image Analyst
Image Analyst le 11 Avr 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:

Connectez-vous pour commenter.

Réponses (1)

Sam Chak
Sam Chak le 11 Avr 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])

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by