MATLAB Answers

Filter noise in logical vector

3 views (last 30 days)
Randy Kwa
Randy Kwa on 23 Jan 2020
Answered: KALYAN ACHARJYA on 23 Jan 2020
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 Comments

Sign in to comment.

Answers (1)

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

  0 Comments

Sign in to comment.

Sign in to answer this question.