Minor bug fixes and code formatting
[100GbE-PON.git] / deqpskmod.m
CommitLineData
5117fc58
AIL
1function modData = deqpskmod(data)
2 %% Input: Unmodulated data as integers between 0 to 3 inclusive.
3 %% Output: Differentially encoded QPSK symbols.
4 %% Parameter formats are the same as MATLAB's "pskmod" function.
5 modData = pskmod(data, 4, 0, 'gray');
6 numSymbs = size(data, 1);
7 for i = 2 : numSymbs
8 modData(i, :) = modData(i, :) .* modData(i - 1, :);
9 end
10end