I am going to test an algorithm and need a test signals.
My first test signal is a binary signal of 1 or -1. I was thinking about how to implement such a sequence in matlab and wrote this:
binary_data = rand(1,M) > 0.5; b = 2.*binary_data - 1;
My next step is:
dataInMatrix = reshape(b,length(b)/k,k); % reshape data into binary k-arrays, k=log2(M), M -size of signal constelation dataSymbolsIn = bi2de(dataInMatrix);
Expected input number 1, binary vector b, to be nonnegative.
How to convert such binary sequence to integer if i need create symbols?
Guys, I have generated a test signal and it look like this:
- i generate a sequence 1 or -1
- use a raised cosine filter
How can I get a blue lines...show samples ( digital signal)?