Can I control filter command?

1 次查看(过去 30 天)
Assuming I have a function an equation like
y[n]=x[n]-y[n-1] with the condition that y[n]=0 if n<0
can I implement and solve this using filter command? or should I solve it in another way?

采纳的回答

per isakson
per isakson 2020-5-30
编辑:per isakson 2020-5-30
Yes, filter() is possible. Try
y = filter( 1, [1,1], x );
  1 个评论
Mohamed Salah
Mohamed Salah 2020-5-30
I was trying the same line of code but with vaiables a,b and it didn't produce the correct values, but somehow the line did solve the problem. Thanks!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by