[yp,fxp,fyp] = irsa_genreal (xp, amp, phi)
Generate values for a real-valued band-limited timeseries at the sampling points xp with amplitudes amp and phases
2*
pi*
phiInput:
xp : Vector – sampling points
amp : Vector – positive amplitudes of the spectrum
phi : Vector – positive phases of the spectrum in
rad / 2*
pi.Output:
yp : Columnvector – sampling values
fxp : Columnvector – frequency points
fyp : Columnvector – frequency values
Note:
If xp doesn't start at 0 the spectrum will be phase shifted. The function assumes, that this phase shift is neglected when giving the spectrum in amp and phi, but computes the correct phase shifted values in fyp.