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

6 Ansichten (letzte 30 Tage)
Zahra
Zahra am 8 Apr. 2023
Beantwortet: Sam Chak am 11 Apr. 2023
Why I am getting negative values in my low pass filter ?
  2 Kommentare
Vilém Frynta
Vilém Frynta am 8 Apr. 2023
You're not making it easy for us to help you. Provide your data, your code etc.
Image Analyst
Image Analyst am 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:

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sam Chak
Sam Chak am 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])

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by