MATLAB Answers

Filter noise in logical vector

조회 수: 14(최근 30일)
Randy Kwa
Randy Kwa 23 Jan 2020 13:38
답변: KALYAN ACHARJYA 23 Jan 2020 14:20
I have a logical vector that is meant to run over time (ms). It looks like this:
0000000000000110000000000001111111111111111111111111111111111111100000000000000000001000000000
'Time in ms--->'
In this example I only want a signal that ran 'true' longer then 3ms. The rest I want filtered back to zero's becuase I still need to plot it against time.
How should I do this?

  댓글 수: 0

로그인 to comment.

답변(1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 23 Jan 2020 14:20
Do Modification: Just Hint here (May Be)
loop
data_generation(i)=present_data;
if present_data==1
tic
while toc==
end
end

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by