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

5 次查看(过去 30 天)
Why I am getting negative values in my low pass filter ?

回答(1 个)

Sam Chak
Sam Chak 2023-4-11
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])

类别

Help CenterFile Exchange 中查找有关 Matched Filter and Ambiguity Function 的更多信息

标签

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by