Binary Phase Shift Keying (BPSK) signal
[Y,AM] = anabpsk(N) [Y,AM] = anabpsk(N, NCOMP) [Y,AM] = anabpsk(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
a real column vector of length N: the resulting amplitude modulation.
anabpsk returns a succession of complex sinusoids of NCOMP points each, with a normalized frequency F0 and an amplitude equal to -1 or +1, according to a discrete uniform law. Such signal is only 'quasi'-analytic.
rand("seed",0); [signal,am] = anabpsk(300,30,0.1); clf subplot(211); plot(real(signal));xtitle(_("Signal real part")); subplot(212); plot(am); gca().data_bounds(:,2)=[-1.1 1.1]; xtitle(_("Amplitude modulation")); | ![]() | ![]() |