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)))
Not really my forte, but I searched google for, "BPSK to ASK to QPSK". I got a lot of hits for Matlab. I don't know if the search would provide helpful links, but I wanted to suggest it to you, just in case. I'll keep looking if you want. Hope I can help.