wilfrid100
Newbie level 6
im a newbie for digital communication. currently i hav an assignment regarding on BPSK & QPSK matlab. that hav sthgs which im not understanding btw matlab coding and text book formula.
as wat i read in text book, the BPSK transmitted signal is represented as
S_bpsk(t)=m(t)*√(2Eb/Tb)*cos(ωc*t)
but, in matlab coding (an example)
------------------------------------------------------------------------------------
Ns=100; %vector of length Ns symbols
data=2*round(rand(Ns,1))-1; %this converts 0 into -1, 1 into 1
bpsk=data;
------------------------------------------------------------------------------------
how come the matlab code using a simple -1 & 1 to represent BPSK transmitted signal? (kindly any intelligent can explained this question to me)
as wat i read in text book, the BPSK transmitted signal is represented as
S_bpsk(t)=m(t)*√(2Eb/Tb)*cos(ωc*t)
but, in matlab coding (an example)
------------------------------------------------------------------------------------
Ns=100; %vector of length Ns symbols
data=2*round(rand(Ns,1))-1; %this converts 0 into -1, 1 into 1
bpsk=data;
------------------------------------------------------------------------------------
how come the matlab code using a simple -1 & 1 to represent BPSK transmitted signal? (kindly any intelligent can explained this question to me)