Clear Filters
Clear Filters

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

4 views (last 30 days)
Why I am getting negative values in my low pass filter ?
  2 Comments
Vilém Frynta
Vilém Frynta on 8 Apr 2023
You're not making it easy for us to help you. Provide your data, your code etc.
Image Analyst
Image Analyst on 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:

Sign in to comment.

Answers (1)

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

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!