Generating wavepackets in MATLAB

11 Ansichten (letzte 30 Tage)
Sergio Manzetti
Sergio Manzetti am 25 Jan. 2018
Bearbeitet: Sergio Manzetti am 31 Jan. 2018
Hi, I am trying to generate wavepackets for a complex function using MATLAB, however, I am not sure on the approach. Does MATLAB Forum have a suggestion?
Thanks!

Akzeptierte Antwort

Youssef  Khmou
Youssef Khmou am 26 Jan. 2018
Among the methods for generating wavepackets is linear superposition, considering the spatial dimension x, an elementary complex wavepacket can be generated as follows:
x=-20:0.005:20;
w=20;
dw=0.1;
y=exp(j*w*x)+exp(j*(w-dw)*x)+exp(j*(w+dw)*x);
plot(x,real(y));
the parameter dw is the frequency difference between the components, and has an impact on coherence length.
  5 Kommentare
Sergio Manzetti
Sergio Manzetti am 31 Jan. 2018
Bearbeitet: Sergio Manzetti am 31 Jan. 2018
Thanks for this Youssef, this was indeed clear. I will try it out!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Find more on Particle & Nuclear Physics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by