Quaternary Phase Shift Keying (QPSK) signal
[Y,PM] = anaqpsk(N) [Y,PM] = anaqpsk(N, NCOMP) [Y,PM] = anaqpsk(N, NCOMP, F0)
a positive integer: the signal length.
number of points of each component (default: N/5)
a real scalar in [0 0.5]: then normalized frequency (default: 0.25)
a complex column vector of length N: the signal
initial phase of each component (optional).
anaqpsk returns a complex phase modulated signal of normalized frequency F0, whose phase changes every NCOMP point according to a discrete uniform law, between the values (0, %pi/2, pi, 3*%pi/2). Such signal is only 'quasi'-analytic.
rand("seed",0); [signal,pm0] = anaqpsk(512,64,0.05); clf subplot(211); plot(real(signal)); subplot(212); plot(pm0); gca().data_bounds(1,2)=-0.1; | ![]() | ![]() |