So this is a slightly involved question. Lets try to break it down.
Where is the data coming from?
Are you wanting to use a microcontroller, FPGA, or a computer to decode the data?
What is the protocol/code that the data is formatted in. You must know this in order to be able to translate the data into 1's and 0's.
This is matlab simulation. Signal is output of modulation. IS purely binary representation with out any line or source code for the input. so the output should be purley binary represenation (i.e, high is logic 1 and low is logic 0)