hi i was doing the following in matlab
values = [0;1;0;0;1;0;1;0]; % can contain only 0s and 1s
h = modem.oqpskmod;
y = modulate(h, values);
g = modem.oqpskdemod(h);
z = demodulate(g,y);
BER = sum(logical(values(:)-z(:)))/numel(values); % thanks to gnovice!
before calculating the BER, do you think that i have to convert the array z into array of 1s and 0s only... for example, my z may consist of 3s and 0s, then do i have to convert all numbers bigger than 0 to 1s and all 0s unchanged. so that at the end i get the correct comparison for the BER?