MATLAB Answers

Can I control filter command?

조회 수: 4(최근 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?

  댓글 수: 0

Sign in to comment.

채택된 답변

per isakson
per isakson 30 May 2020
편집: per isakson 30 May 2020
Yes, filter() is possible. Try
y = filter( 1, [1,1], x );

  댓글 수: 1

Mohamed Salah
Mohamed Salah 30 May 2020
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!

Sign in to comment.

추가 답변(0개)

제품


Translated by