hi for the simulation of oqpsk i have written the below
values = [0;1;0;0;1;0;1;0];
h = modem.oqpskmod;
y = modulate(h, values);
g = modem.oqpskdemod(h);
z = logical(demodulate(g,y));
BER = sum(values(:)-z(:))/numel(values);
my questions are as follows: 1) how can i verify that it does what i expect it to do (oqpsk mod/demod process)? 2) how can i introduce noise?