Wie kann ich das Frequenzspektrum eines Signals ohne FFT verschieben?Python

Python-Programme
Anonymous
 Wie kann ich das Frequenzspektrum eines Signals ohne FFT verschieben?

Post by Anonymous »

Das ist meine Funktion, ein Signal (1024 IQ -Proben) durch einige Freq zu verschieben. f0.
Aber das funktioniert nicht wie beabsichtigt ... < /p>
def shift_by(x, shift):
f0 = shift
t = np.arange(0, 1024, 1)
exp = np.exp(2j*np.pi*-f0*t) # this is essentially a complex sine wave
return x * exp
< /code>
Zum Beispiel gibt mir X = Shift_By (x, 2000000.0) < /Code> (Weird):
Dies < /p>
und für x = SHIRT_BY (x, 2000000.1) < /code>:
this < /p>

Es gibt ein schönes Bild:

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post