MATLAB conversion from symbols to bits

Status
Not open for further replies.

Mahmoud22

Newbie level 3
Joined
Dec 2, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,300
I am trying to convert data symbols to data bits and lost. can anybody help, I am new with MATLAB
 

M-code: de2bi or dec2bin functions (they are different!)
Simulink: Integer to Bit Converter.
Or say what are your data symbols look like
 

M-code: de2bi or dec2bin functions (they are different!)
Simulink: Integer to Bit Converter.
Or say what are your data symbols look like

I tried de2bi and wouldn't work. part of data is " 5.1354e-01 -4.8379e-01 -6.4822e-01 6.5347e-01". I used uencode to get it to decimal first but ending up with twice no. of original bits.
 

and what is the number of original bits? how you get these values of data?
 

and what is the number of original bits? how you get these values of data?

"uncoded_bits = randi([0 1],1,num_info_bits_per_frame);
%info_bits_per_frame = 1536)
I performed QPSK modulation on it to get 1536/2 complex symbols

after conv with channel freq. response and addition of noise, equalisation and demod,

I got 1536 symbols of + - integers

now i want to convert to bits and its giving me 1536*2 bits
I used de2bi,
 

The part of data set you posted is not a set of integers. These are rational numbers.
Try to plot your data set and check if it looks like origin (dont pay attantion to values, just shape).
Maybe your noise added is very great.
Or post the full code
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…