Signal with arbitrary frequency modulation.
[Y,IFLAW]=fmodany(IFLAW) [Y,IFLAW]=fmodany(IFLAW,T0)
real vector of length N: the instantaneous frequency law samples.
an integer in [1 N]: the time reference (default: 1).
a complex column vector of size N: the output signal
fmodany generates a frequency modulated signal whose instantaneous frequency law is approximately given by the vector IFLAW (the integral is approximated by CUMSUM). The phase of this modulation is such that y(t0)=1.
[y1,ifl1]=fmlin(100); [y2,ifl2]=fmsin(100); iflaw=[ifl1;ifl2]; sig=fmodany(iflaw); clf; subplot(211); plot(real(sig));xtitle(_("Signal real part")) subplot(212); plot(iflaw);xtitle(_("Instantaneous frequency law")) | ![]() | ![]() |