MATLAB Answers

Generating wavepackets in MATLAB

39 ビュー (過去 30 日間)
Sergio Manzetti
Sergio Manzetti 2018 年 1 月 25 日
編集済み: Sergio Manzetti 2018 年 1 月 31 日
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!

採用された回答

Youssef  Khmou
Youssef Khmou 2018 年 1 月 26 日
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 件のコメント
Sergio Manzetti
Sergio Manzetti 2018 年 1 月 31 日
Thanks for this Youssef, this was indeed clear. I will try it out!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by