How do I write a code which will detect the input pulses as a bit?

I have pulse train as 1010111111111100. Sample rate of the pulse as same as sampling time of the simulink model. I want to know that how can I write a code which will read first 4 bit(10 10) then will give output as like as input(0000111111111100) without first 4 bit and then will stop after getting the the bit 00.

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 21 May 2015

Commented:

on 21 May 2015

Community Treasure Hunt

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

Start Hunting!