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

2 visualizaciones (últimos 30 días)
Zahra
Zahra el 8 de Abr. de 2023
Respondida: Sam Chak el 11 de Abr. de 2023
Why I am getting negative values in my low pass filter ?
  2 comentarios
Vilém Frynta
Vilém Frynta el 8 de Abr. de 2023
You're not making it easy for us to help you. Provide your data, your code etc.
Image Analyst
Image Analyst el 11 de Abr. de 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:

Iniciar sesión para comentar.

Respuestas (1)

Sam Chak
Sam Chak el 11 de Abr. de 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])

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by