sht11help
Newbie level 6
bpsk code
I need to change this BPSK script made in Scilab to an ASK code and then again to QPSK code if possible, i been searching for hours trying to find answers.....
interp = 64;
bits = 2048;
data = rand(1, bits) > 0.5;
data1 = 2.*data - 1;
data2 = zeros(1, bits*interp);
for m = 1:interp,
data2(m:interp:bits*interp) = data1;
end
t=0:1/2bits*interp/2) - 1/2;
carrier = sin(t);
bpskwave = carrier.*data2;
plot(20*log(fft(bpskwave)/length(data2)))
Regards Arthur
I need to change this BPSK script made in Scilab to an ASK code and then again to QPSK code if possible, i been searching for hours trying to find answers.....
interp = 64;
bits = 2048;
data = rand(1, bits) > 0.5;
data1 = 2.*data - 1;
data2 = zeros(1, bits*interp);
for m = 1:interp,
data2(m:interp:bits*interp) = data1;
end
t=0:1/2bits*interp/2) - 1/2;
carrier = sin(t);
bpskwave = carrier.*data2;
plot(20*log(fft(bpskwave)/length(data2)))
Regards Arthur